Jump to content

User:Ptikobj

From Wikipedia, the free encyclopedia

We are the music makers, and we are the dreamers of the dreams.

{google:baseURL}search?q=%s&{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}{google:searchFieldtrialParameter}sourceid=chrome&ie={inputEncoding}

http://www.google.com/#sclient=psy&hl=en&q=%s&aq=f&aqi=p-p2g3&aql=&oq=&pbx=1&fp=5b2df7f8ff10eaf9

http://forum.xda-developers.com/showthread.php?t=1282900


http://www.youtube.com/watch?v=nagI_slIviA


Así es como está ahorita:



<a href="https://www.facebook.com/inventario.inmobiliario/app_206541889369118" target="_blank">
<img src="http://img525.imageshack.us/img525/7199/logoiic.png" width="175">
<img src="http://img407.imageshack.us/img407/4421/invinmfbweb02.png" width="800" />
<img src="http://img51.imageshack.us/img51/9803/invinmfbweb01.png" width="800" />
<img src="http://img402.imageshack.us/img402/4907/nuestrasoficinasinvinm5.png" width="800" />
Así debe quedar para que el link afecte solo a la primera imagen:

<a href="https://www.facebook.com/inventario.inmobiliario/app_206541889369118" target="_blank">
<img src="http://img525.imageshack.us/img525/7199/logoiic.png" width="175">
</a>
<img src="http://img407.imageshack.us/img407/4421/invinmfbweb02.png" width="800" />
<img src="http://img51.imageshack.us/img51/9803/invinmfbweb01.png" width="800" />
<img src="http://img402.imageshack.us/img402/4907/nuestrasoficinasinvinm5.png" width="800" />





                'Direccion red
        If lblClase.Text = "A" Then
            ms_oct1.Text = oct1.Text
            ms_oct2.Text = 0
            ms_oct3.Text = 0
            ms_oct4.Text = 0

        ElseIf lblClase.Text = "B" Then
            ms_oct1.Text = oct1.Text
            ms_oct2.Text = oct2.Text
            ms_oct3.Text = 0
            ms_oct4.Text = 0

        ElseIf lblClase.Text = "C" Then
            ms_oct1.Text = oct1.Text
            ms_oct2.Text = oct2.Text
            ms_oct3.Text = oct3.Text
            ms_oct4.Text = 0

        End If

        'Broadcast
        If lblClase.Text = "A" Then
            ms_oct1.Text = oct1.Text
            ms_oct2.Text = 255
            ms_oct3.Text = 255
            ms_oct4.Text = 255

        ElseIf lblClase.Text = "B" Then
            ms_oct1.Text = oct1.Text
            ms_oct2.Text = oct2.Text
            ms_oct3.Text = 255
            ms_oct4.Text = 255

        ElseIf lblClase.Text = "C" Then
            ms_oct1.Text = oct1.Text
            ms_oct2.Text = oct2.Text
            ms_oct3.Text = oct3.Text
            ms_oct4.Text = 255

        End If

        'Mascara subred
        If lblClase.Text = "A" Then
            ms_oct1.Text = 255
            ms_oct2.Text = 0
            ms_oct3.Text = 0
            ms_oct4.Text = 0

        ElseIf lblClase.Text = "B" Then
            ms_oct1.Text = 255
            ms_oct2.Text = 255
            ms_oct3.Text = 0
            ms_oct4.Text = 0

        ElseIf lblClase.Text = "C" Then
            ms_oct1.Text = 255
            ms_oct2.Text = 255
            ms_oct3.Text = 255
            ms_oct4.Text = 0

        End If


Codigo.

[edit]
    
    Private Sub btnPuPri_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPuPri.Click


        If (txtPrimis.Text = 10) Then

            lblPuPri.Text = "Privada"

        ElseIf (txtPrimis.Text = 172 And txtSeguns.Text >= 16 And txtSeguns.Text <= 31) Then

            lblPuPri.Text = "Privada"

        ElseIf (txtPrimis.Text = 192 And txtSeguns.Text = 168) Then

            lblPuPri.Text = "Privada"

        Else
            lblPuPri.Text = "Publica"
        End If


    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        txtCuarto.Text = 0
        txtPrimis.Text = 0
        txtSeguns.Text = 0
        txtTercer.Text = 0
    End Sub

    Private Sub btnClase_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClase.Click

        If (txtPrimis.Text >= 0 And txtPrimis.Text <= 127) Then

            lblClase.Text = "A"

        ElseIf (txtPrimis.Text >= 128 And txtPrimis.Text <= 191) Then

            lblPuPri.Text = "B"

        ElseIf (txtPrimis.Text >= 192 And txtPrimis.Text <= 223) Then

            lblPuPri.Text = "C"

        Else
            lblClase.Text = "ERORRORRORORROR"
        End If


    End Sub


globals[movimientos mov-lista]

to setupTarea
  clear-turtles
  set mov-lista[]
  create-rojas numTors [set color red setxy random-xcor random-ycor]
  create-azules numTors2 [set color blue setxy random-xcor random-ycor]
  ask rojas[set shape "person"]
  ask azules[set shape "person"]
end

to runTarea
  ask turtles [while [any? other turtles-here][setxy random-xcor random-ycor]]
  ask rojas [if count azules-on neighbors > (count rojas-on neighbors) [move-to one-of neighbors ] ]
  ask azules [if (count azules-on neighbors) < count rojas-on neighbors [move-to one-of neighbors ] ]
end

to runMoveRand
  set movimientos 0
  ask one-of turtles[setxy random-xcor random-ycor]
end

to runClase
  ask turtles [while [any? other turtles-here][setxy random-xcor random-ycor set movimientos movimientos + 1]]
  ask rojas [if count azules-on neighbors > count rojas-on neighbors [move-to one-of neighbors set movimientos movimientos + 1] ]
  ask azules [if count azules-on neighbors < count rojas-on neighbors [move-to one-of neighbors set movimientos movimientos + 1] ]
end

to printMovs
  
  repeat 1000
  [
  runMoveRand
  repeat 15 [runClase]
  set mov-lista lput movimientos mov-lista
  ]
  
end

to printLista
    output-write mov-lista
    file-open "movimientos.txt"
    file-write mov-lista
    file-close
end

to gogoPloterRangers
  clear-plot
  set-plot-pen-mode 1
  histogram mov-lista
  
  
end




#include <iostream>
#include <windows.h>
#include <gl/Gl.h>
#include <gl/Glu.h>
#include <gl/glut.h>
#include <time.h>
#include "Camara.h"

Camera cam;
float scale;
float angle;
float x;
float y;
float z;
float ejeX;
float ejeY;
float ejeZ;
int ejeRotacion;
Point3 eyem, lookm;
Vector3 upm;
bool banderaCamara = false;

void dibujaLetras() {
	//J
	glPushMatrix();
		glTranslated(-0.60, 0,  0);
		glScaled(0.25, 1.0, 0.25);
		glColor3d(0,1,0);
		glutSolidCube(0.25);
	glPopMatrix();
	glPushMatrix();
		glTranslated(-0.65, -0.095,  0);
		glScaled(0.50, 0.25, 0.25);
		glColor3d(0,1,0);
		glutSolidCube(0.25);
	glPopMatrix();
	//A
	glPushMatrix();
		glTranslated(-0.5, 0,  0);
		glScaled(0.25, 1.0, 0.25);
		glColor3d(1,0,0);
		glutSolidCube(0.25);
	glPopMatrix();
	glPushMatrix();
		glTranslated(-0.35, 0,  0);
		glScaled(0.25, 1.0, 0.25);
		glColor3d(1,0,0);
		glutSolidCube(0.25);
	glPopMatrix();
	glPushMatrix();
		glTranslated(-0.425, 0.095,  0);
		glScaled(0.85, 0.25, 0.25);
		glColor3d(1,0,0);
		glutSolidCube(0.25);
	glPopMatrix();
	glPushMatrix();
		glTranslated(-0.425, 0.002,  0);
		glScaled(0.35, 0.25, 0.25);
		glColor3d(1,0,0);
		glutSolidCube(0.25);
	glPopMatrix();
	//A
	glPushMatrix();
		glTranslated(-0.25, 0,  0);
		glScaled(0.25, 1.0, 0.25);
		glColor3d(0,0,1);
		glutSolidCube(0.25);
	glPopMatrix();
	glPushMatrix();
		glTranslated(-0.10, 0,  0);
		glScaled(0.25, 1.0, 0.25);
		glColor3d(0,0,1);
		glutSolidCube(0.25);
	glPopMatrix();
	glPushMatrix();
		glTranslated(-0.175, 0.095,  0);
		glScaled(0.85, 0.25, 0.25);
		glColor3d(0,0,1);
		glutSolidCube(0.25);
	glPopMatrix();
	glPushMatrix();
		glTranslated(-0.175, 0.002,  0);
		glScaled(0.35, 0.25, 0.25);
		glColor3d(0,0,1);
		glutSolidCube(0.25);
	glPopMatrix();
}

void myDisplay(void) {
	glClear(GL_COLOR_BUFFER_BIT);
   	glPushMatrix();
		glTranslated(x, y , z);
	    glScaled(scale, scale, scale);
		glRotatef(angle, ejeX, ejeY, ejeZ);
		dibujaLetras();
	glPopMatrix();
	glFlush();
	//glutSwapBuffers(); // display the screen just made
}

void myInit() {
	angle= 0.0;
    scale= 1.0;
    x= 0.0;
    y= 0.0;
    z= 0.0;
}

void myIdle (void) {
	if (banderaCamara == false){
	//angle= angle + 1.0;
	angle= rand()%91 /1.0;
	if (angle > 360.0)
		angle= angle - 360.0;
    ejeRotacion= rand()%3;
    if (ejeRotacion == 0){
    	ejeX= 2.0;
    	ejeY= 0.0;
    	ejeZ= 0.0;
    } else if (ejeRotacion == 1){
    	ejeX= 0.0;
    	ejeY= 2.0;
    	ejeZ= 0.0;
    } else {
     	ejeX= 0.0;
      	ejeY= 0.0;
      	ejeZ= 2.0;
    }
    Sleep(500);
    //Los siguientes valores de los parámetros fueron calculados
    //por prueba y error.
    scale= ((rand()%7)/2.0)-0.25;
    y= (rand()%2)-0.5;
    x= (rand()%2)-0.5;
    z= -((rand()%8)-1.5);
	glutPostRedisplay();
	}
}

void keyFunc(unsigned char key, int x, int y){
  banderaCamara = true;
  switch(key){
	case 'n':
		eyem.x = 0; eyem.y = 0; eyem.z = 10;
		cam.set(eyem, lookm, upm);
		banderaCamara = false;
	break;
	case 'f': 
		cam.slide(0,0, 0.2); 
	break; //slide camera forward
	case 'r':
		cam.slide(0,0,-0.2);
	break; //slide camera back
	case 'a': 
		cam.slide(0.2, 0, 0); 
	break; //slide camera right
	case 'd': 
		cam.slide(-0.2, 0,0); 
	break; //slide camera left
	case 's': 
		cam.slide(0, 0.2,0); 
	break; //slide camera up
	case 'w': 
		cam.slide(0,-0.2,0);
	break; //slide camera down
	case 'g': 
		cam.pitch(-1.0); 
	break; //pitch down
	case 't': 
		cam.pitch( 1.0); 
	break; //pitch up
	case 'y': 
		cam.yaw(-1.0); 
		break; //yaw left
	case 'u': 
		cam.yaw( 1.0); 
		break; //yaw right
	case 'h': 
		cam.roll(-1.0); 
		break; //roll right
	case 'j': 
		cam.roll( 1.0); 
		break; //roll left
  }
  glutPostRedisplay(); 
}

int main(int argc, char **argv){
	glutInit(&argc, argv);
	glutInitWindowSize(640,480);
	glutInitWindowPosition(50, 50);
	glutCreateWindow("ProtectorDePantalla");
	glutKeyboardFunc(keyFunc);
	myInit();
	glutDisplayFunc(myDisplay);
	glClearColor(0.0f,0.0f,0.0f,0.0f);
	glViewport(0, 0, 640, 480);
	eyem.x = 0; eyem.y = 0; eyem.z = 10;
	lookm.x = 0; lookm.y = 0; lookm.z = 0;
	upm.x = 0; upm.y = 1; upm.z = 0;
	cam.set(eyem, lookm, upm); // make the initial camera
	cam.setShape(30.0f, 64.0f/48.0f, 0.5f, 50.0f);
	glutIdleFunc(myIdle);
	glutMainLoop();
	return 0;
}