miércoles, 21 de enero de 2015

Lineamientos para articulos de conociminetos

Articulo de conocimiento
Estado: borrador publicado archivado
Titulo
Descripcion
Clasificación
palabras clave
Propietario del articulo
Etiqueta
Idioma
Categoria
Comentario
Url externa

Introduzca contraseña maestra Disp. software seguridad - thunderbirt

Herramientas – Consola de errores – y en el codigo pegamos
openDialog("chrome://pippki/content/resetpassword.xul")

martes, 20 de enero de 2015

Escala de imprecion en open office

Método imprimir lo seleccionado en OpenOffice Calc

Desde la versión 3.4 para imprimir sólo lo seleccionado debemos recurrir a definir un rango de impresión con las celdas seleccionadas.
Los pasos a seguir son:
Selecciona las celdas a imprimir
Selecciona la opción Formato > Imprimir rangos > Definir
Activa la Vista preliminar para verificar que la impresión se realizará como tenemos previsto.
Utilizaremos los botones Formato de página, Márgenes y Escala para ajustar la selección al formato de páginas deseado.
Finalmente, desde la misma Vista preliminar podemos invocar el comando Archivo > Imprimir.

En versiones anteriores a la 3.4

Selecciona previamente el rango de celdas a imprimir.
Activa la Vista preliminar para verificar que la impresión se realizará como tenemos previsto.
Utilizaremos los botones Formato de página, Márgenes y Escala para ajustar la selección al formato de páginas deseado.
Finalmente, desde la misma Vista preliminar podemos invocar el comando Archivo > Imprimir.

Menu formato - Paginas y configurar

viernes, 16 de enero de 2015

Ejemplo de reporte en scriptcase


//variables
$ideperiodoevaluar=[evacodperiodo] ;//4;//eva_periodo
$ideuser=[sm_global_login]; //79864589;
$idecolegioperiodo=[codcolegioperiodo];//159;//col_colegio_periodo
list($nomdoc, $apedoc,$tipodoc)=return_datospersonales($ideuser);
list($nomperevalua,$fecperevalua,$nomperacadem)= return_datosperiodo($ideperiodoevaluar);
//DATOS PARA LLENAR EL REPORTE
list($nestudiates, $promestudiantes, $evalestudiantes, $docporcentaj)=return_evaldocente($idecolegioperiodo, $ideuser, $ideperiodoevaluar);
$promestudiantes=round($promestudiantes,2);
$docporcentajapl=round(($promestudiantes*$docporcentaj)/100,2);

list($promjefe, $dirporcentaj)=return_evaldirector($idecolegioperiodo, $ideperiodoevaluar, 15, 2, $ideuser);
$promjefe=round($promjefe,2);
$dirporcentajapl=round(($promjefe*$dirporcentaj)/100,2);

list($promautoeval, $autporcentaj)=return_evalauto($idecolegioperiodo, $ideperiodoevaluar, 2, 2, $ideuser);
$promautoeval=round($promautoeval,2);
$autporcentajapl=round(($promautoeval*$autporcentaj)/100,2);

$promcuantitativo = round(($promestudiantes+$promjefe+$promautoeval)/3,2);

//cosultamos la escala
$escala = array();$txt_escala='';
$descualitativo='NO APLICA';
$check_sql = "SELECT
    eva_escalavalores.val_inicial
    , eva_escalavalores.val_final
    , eva_escalavalores.val_letrasdescripcion
    , eva_escalavalores.val_letrassiglas
FROM
    eva_escalavalores
    INNER JOIN eva_escala 
        ON (eva_escalavalores.ide_escala = eva_escala.ide_escala)
    INNER JOIN eva_periodo 
        ON (eva_periodo.ide_escala = eva_escala.ide_escala)
WHERE (eva_periodo.cod_periodo ='".$ideperiodoevaluar."')
ORDER BY val_inicial, val_final";
sc_select(rs, $check_sql);
if (false == {rs})     // Error while accessing database
{
    sc_error_message('Error while accessing database.');
}
else
{
$i=0;
   while(!$rs->EOF)
    {
$escala[$i]['ini']= $rs->fields[0];
$escala[$i]['end']= $rs->fields[1];
$escala[$i]['des']= $rs->fields[2];
$escala[$i]['sig']= $rs->fields[3];
$txt_escala.=$rs->fields[2].'('.$rs->fields[0].'-'.$rs->fields[1].')  ';
//consultamos el cualitativo
if($promcuantitativo>=$rs->fields[0] && $promcuantitativo<=$rs->fields[1])
{
$descualitativo=$rs->fields[2];
} 
$i++;
$rs->MoveNext();
    }
    $rs->Close();
}

$pdf=new PDF();
$pdf->AddPage('P','Letter');
$pdf->SetMargins(10, 20, 10);
$pdf->SetFillColor(211,211,211);
$pdf->SetDrawColor(192,192,192);
$pdf->SetFont('Times','B',12);
$pdf->Ln(10);
$pdf->Cell(10);
$pdf->Cell(60,8,'NOMBRES Y APELLIDOS ' ,0,0,'L');
$pdf->SetFont('Times','',12);
$pdf->Cell(110,8,$nomdoc." ".$apedoc ,1,0,'C');
$pdf->SetFont('Times','B',12);
$pdf->Ln(9);
$pdf->Cell(10);
$pdf->Cell(60,8,'PERIODO EVALUADO' ,0,0,'L');
$pdf->SetFont('Times','',12);
$pdf->Cell(110,8,$nomperevalua ,1,0,'C');
$pdf->SetFont('Times','B',12);
$pdf->Ln(9);
$pdf->Cell(10);
$pdf->Cell(60,8,'FECHA ',0,0,'L');
$pdf->SetFont('Times','',12);
$pdf->Cell(110,8,$fecperevalua ,1,0,'C');
$pdf->SetFont('Times','B',10);
$pdf->Ln(12);
$pdf->Cell(10);
$pdf->Cell(60,8,'CUANTITATIVO',1,0,'C');
$pdf->Cell(60,8,'REFERENTE' ,1,0,'C');
$pdf->Cell(15,8,'NOTA' ,1,0,'C');
$pdf->Cell(35,8,'PORCENTAJE' ,1,0,'C');
//$pdf->Cell(20,8,'%' ,1,0,'C');
$pdf->SetFont('Times','',10);
$pdf->Ln(8);
$pdf->Cell(10);
$pdf->Cell(60,8,$promcuantitativo,1,0,'C');
$pdf->Cell(60,8,'Estudiantes ('.$evalestudiantes.'/'.$nestudiates.')' ,1,0,'C');
$pdf->Cell(15,8,$promestudiantes ,1,0,'C');
$pdf->Cell(35,8,$docporcentaj.'% - '.$docporcentajapl ,1,0,'C');
//$pdf->Cell(20,8,$docporcentaj.'%' ,1,0,'C');
$pdf->Ln(8);
$pdf->Cell(10);
$pdf->SetFont('Times','B',10);
$pdf->Cell(60,8,'CUALITATIVO',1,0,'C');
$pdf->SetFont('Times','',10);
$pdf->Cell(60,8,'Director de Programa' ,1,0,'C');
$pdf->Cell(15,8,$promjefe ,1,0,'C');
$pdf->Cell(35,8,$dirporcentaj.'% - '.$dirporcentajapl,1,0,'C');
//$pdf->Cell(20,8,$dirporcentaj.'%' ,1,0,'C');
$pdf->Ln(8);
$pdf->Cell(10);
$pdf->Cell(60,8,$descualitativo,1,0,'C');
$pdf->Cell(60,8,'Autoevaluacion' ,1,0,'C');
$pdf->Cell(15,8,$promautoeval ,1,0,'C');
$pdf->Cell(35,8,$autporcentaj.'% - '.$autporcentajapl ,1,0,'C');
//$pdf->Cell(20,8,$autporcentaj.'%' ,1,0,'C');
$pdf->Ln(8);
$pdf->SetFont('Times','I',8);
$pdf->Cell(0,8,$txt_escala,0,0,'C');
$pdf->SetFont('Times','B',9);
//IMPRIME GRAFICA
$data = array('Estudiantes' => $promestudiantes, 'Director Programa' => $promjefe, 'Autoevaluacion' => $promautoeval);
$pdf->Ln(8);
$valX = $pdf->GetX();
$valY = $pdf->GetY();
$pdf->BarDiagram(170, 60, $data, '%l: %v(%p)', array(126,134,220));
$pdf->SetXY($valX, $valY + 80);

//IMPRIME FIRMA DEL VICERRECTOR
$pdf->SetFont('Times','',12);
list($_idevice,$_nomvice, $_apevice, $_firvice) = return_viceacademico();
$pdf->Ln(10);
$x=$pdf->GetX()+70;
$y=$pdf->GetY();
$pdf->Image('../_lib/file/imgimg_firmapersonal/'.$_firvice,$x,$y);
$pdf->Ln(25);
$pdf->Cell(0,5,$_nomvice.' '.$_apevice,0,1,'C');
$pdf->Cell(0,5,'VICERRECTOR ACADÉMICO',0,1,'C');

//IMPRIME LAS OBSERVACIONES SI EXISTEN
$existen=0;
$check_sql = "SELECT
    eva_cuestionario_estudiantedocente.observacion
    , eva_cuestionario_estudiantedocente.fec_evaluacion
FROM
    col_colegio_periodo
    INNER JOIN col_periodo 
        ON (col_colegio_periodo.cod_periodo = col_periodo.cod_periodo)
    INNER JOIN eva_periodo 
        ON (eva_periodo.cod_periodoacademico = col_periodo.cod_periodo)
    INNER JOIN eva_fechaevaluacion 
        ON (eva_fechaevaluacion.cod_periodo = eva_periodo.cod_periodo)
    INNER JOIN eva_cuestionario_estudiantedocente 
        ON (eva_cuestionario_estudiantedocente.ide_fechaevaluacion = eva_fechaevaluacion.ide_fechaevaluacion)
    INNER JOIN col_colegio_asignatura_docente 
        ON (eva_cuestionario_estudiantedocente.cod_colegioasignaturadocente = col_colegio_asignatura_docente.cod_colegio_asignatura_docente)
WHERE (col_colegio_periodo.cod_colegio_periodo ='".$idecolegioperiodo."'
    AND eva_periodo.cod_periodo ='".$ideperiodoevaluar."'
    AND col_colegio_asignatura_docente.ide_persona ='".$ideuser."'
    AND eva_cuestionario_estudiantedocente.observacion IS NOT NULL)";

sc_select(rs, $check_sql);
if (false == {rs})     // Error while accessing database
{
    sc_error_message('Error while accessing database.');
}
else
{
   while(!$rs->EOF)
    {
if($existen==0)
{
$pdf->AddPage('P','Letter');
$pdf->SetFont('Times','B',16);
$pdf->Cell(0,8,'OBSERVACIONES',0,1,'C');
$pdf->Ln(5);
$pdf->SetFont('Times','B',12);
$pdf->Cell(10);
$pdf->Cell(60,8,'NOMBRES Y APELLIDOS ' ,0,0,'L');
$pdf->SetFont('Times','',12);
$pdf->Cell(110,8,$nomdoc." ".$apedoc ,1,0,'C');
$pdf->SetFont('Times','B',12);
$pdf->Ln(9);
$pdf->Cell(10);
$pdf->Cell(60,8,'PERIODO EVALUADO' ,0,0,'L');
$pdf->SetFont('Times','',12);
$pdf->Cell(110,8,$nomperevalua ,1,0,'C');
$pdf->SetFont('Times','B',12);
$pdf->Ln(9);
$pdf->Cell(10);
$pdf->Cell(60,8,'FECHA ',0,0,'L');
$pdf->SetFont('Times','',12);
$pdf->Cell(110,8,$fecperevalua ,1,0,'C');
$pdf->SetFont('Times','B',10);
$pdf->Ln(10);
$existen=1;
} 
$obs= $rs->fields[0];
$fec= $rs->fields[1];
$obs= utf8_decode($obs);
$pdf->SetFont('Times','',10);
$pdf->MultiCell(0, 8, '['.$fec.'] '.$obs, 1, 'J');
$pdf->Ln(5);
$rs->MoveNext();
    }
    $rs->Close();
}

$pdf->output();

jueves, 15 de enero de 2015

domingo, 11 de enero de 2015

Elementos de un mapa

A map can have many different elements, each with a specific function that helps the audience understand the map. Deciding which elements to include is an essential part of map design. 

The main elements of a map are:
  • Map body — the most important element on a map, the map body shows the data you have mapped for an area of interest. A map may contain one or more map bodies.


  • Legend — explains the symbology used in the map body. Without a legend, the map's audience may not understand what the symbols mean.


  • Title — conveys the map's subject to the audience.


  • Scale — the map scale can be numeric (1:10,000), verbal (1 inch equals 10,000 inches), or graphic (a scale bar). Using the scale, the map reader can measure distances between features, the length of features, or the area of a shape in the map.


  • North arrow — shows a map's orientation (how the features in the map relate to north). Most maps tend to be oriented so that north faces the top of the page. Depending on the map projection, using a grid or a graticule may be more appropriate than using a north arrow.


  • In some maps, such as nautical charts or other maps used for navigation, you may need to provide additional orientation information, such as a detailed compass rose or the direction of both true and magnetic north.

  • Inset map — shows how the area of interest shown in the main map body is related to a larger area. An inset map is particularly helpful when the map body is zoomed in on a region and the audience may not be familiar with the area of interest.
Other elements can be added to a map to help the audience understand its message and decide how to use the map, as well as to enhance the map's visual appeal. Some of these elements are:
  • Sources of the data shown in the map
  • Map projection, which can help the audience determine the accuracy of measurements they make on the map
  • Name of the map creator or organization
  • Date of publication
  • Informative text about the map's subject or purpose
  • A graph, table, or report based on the data in the map
  • A neatline (graphic border) that helps to group the map elements together
  • Internal borders that categorize or rank the map elements
  • Images, such as a company logo or an aerial photo
This map includes several elements to help the audience understand the map's message.
Este mapa incluye varios elementos que ayuda a la audiencia a entender el mensaje del mapa

sábado, 10 de enero de 2015

Musica OST de aprecio y placer

Música para aprecio
Loreena Mckennitt-The Highwayman (With lyrics)


Música para coraje
Two Steps From Hell || SkyWorld || Complete Album || 1 Hour || 1080p


Música Actitud y valor
Act Of Valor Ending Song - For You - Keith Urban


Joel Osteen en Español - ¡Domina tus emociones! (Say No to Your Feelings)




jueves, 8 de enero de 2015

Lector de libros PDF en PC y en androide

En android les recomiendo
http://www.mantano.com/

Estimados amigos, he buscado y estoy probando sobre algun lector de libros en PC
Este solo en un lector gratuito:
Solo es lector en pantalla
http://www.adobe.com/solutions/ebook/digital-editions.html

Para activar la lectura
Puedes tambien desde un PDF reader activar esta funcion
luedo de instalar este programa
https://mega.co.nz/#!o5QGRLDY!cFzIqwzAJr6MgtWiUFxt73tnaRLut_ipOtuImWWrPno
abres el PDF y menu ver - leer pdf

miércoles, 7 de enero de 2015

Bloquear facebook https usando ipcop

add file /etc/rc.d/rc.firewall.local

#!/bin/sh
# Used for private firewall rules

# See how we were called.
case "$1" in
  start)
        ## add your 'start' rules here
        iptables -t nat -I PREROUTING -m tcp -p tcp -d www.facebook.com --dport 443 -j DROP
        iptables -t nat -I PREROUTING -m tcp -p tcp -d www.twitter.com --dport 443 -j DROP
        iptables -t nat -I PREROUTING -m tcp -p tcp -d www.youtube.com --dport 443 -j DROP
        ;;
  stop)
        ## add your 'stop' rules here
        ;;
  reload)
        $0 stop
        $0 start
        ## add your 'reload' rules here
        iptables -t nat -I PREROUTING -m tcp -p tcp -d www.facebook.com --dport 443 -j DROP
        iptables -t nat -I PREROUTING -m tcp -p tcp -d www.twitter.com --dport 443 -j DROP
        iptables -t nat -I PREROUTING -m tcp -p tcp -d www.youtube.com --dport 443 -j DROP
        ;;
  *)
        echo "Usage: $0 {start|stop|reload}"
        ;;
esac
Fuente: http://adabi.kelatekito.my/block-faceboo-https-port-using-ipcop/

viernes, 2 de enero de 2015

quitar barra de blogger

Edita el html de la plantilla, con ctrl + f busca la palabra body y antes de esta coloca el siguiente codigo
#navbar-iframe {
height:0px;
visibility:hidden;
display:none
}

Visualizador de windows predefinido para abrir imagenes

 abrir regedit Equipo\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations nuevas entrada valor de todas...