Aparellar Nikon D5600 amb movil amb SnapBridge

Si ja has usat anteriorment la connexió i tens problemes per enllaçar la càmera amb el mòbil. proba de desinstal·lar completament snapbridge i tornar-lo a instal·lar seguint les instruccions que l’APP et va donant.

Aquest comentari d’internet és el que m’ha funcionat millor:

Bluetooth isn’t setup directly from the menu on the d5600 and other SnapBridge enabled cameras. Instead, you have to use the WiFi or NFC linkage from the SnapBridge app to get your phone or tablet to pair with your camera on Bluetooth.

You can view or download the pairing guides and manuals (pdf) for the d5600 at this location: Nikon D5600 Download Center

I’ve only gone through this process with an iOS device and a D500, but here are the basics and the guides at the aforementioned link have the same steps:

  1. Make sure your camera is not in Airplane mode.
  2. Setup WiFi on the camera first, and note that the camera is hosting the WiFi network. You won’t actually be able to connect the camera to an existing AP. You can set a password for this ad-hoc WiFi network on the camera.
  3. Connect to the WiFi network from your device, using the name of the network and password for it that is configured on the camera.
  4. On your camera, locate the “Connect to Smart Device” option in settings and activate it.
  5. Launch SnapBridge on your device. If the WiFi connection dropped (this happens often on iOS), it may prompt you to activate it again. Simply go back to your WiFi settings or use the prompt button in the iOS Snapbridge app and reconnect to the AP/network hosted by the Camera when directed to the phone/tablet settings. Return back to the Snapbridge app after the wifi network is on the camera’s AP.
  6. If everything has gone well, it should detect the camera and you’ll be prompted to verify the bluetooth code on both devices, and from here the pairing goes the same as any other bluetooth device, except that it is within Snapbridge.

Note that if your camera battery is not at 85% or better charge, you may have trouble connecting to the WiFi AP/network hosted by the camera. This is mentioned in the docs but worth repeating because out-of-the-box or after even moderate camera use, the camera’s battery will not be fully charged and you will have to wait for a full charge to setup Bluetooth/Snapbridge. I carry an extra battery with me in the field if I anticipate needing to use SnapBridge.

Last, I had one more quirk that I couldn’t duplicate, but just in case: If you setup a WiFi access password on the camera containing a space or an underscore, you might not be able to connect to it from your phone or tablet. I wasn’t able to duplicate this issue again after the 1.06 patch for the D500, but if you’ve done the same, it may be worth trying a new password for WiFi that only has alphanumeric characters.

 

PHP. 2 Pas de paràmetres al servidor

En aquest exemple veurem com passar paràmetres entre dos programes PHP: prog1.php –paràmetre –> prog2.php (admin.php) ubicats al mateix servidor.

[php]

<form class="form" method="post" name="f1" >
<input name="admin" type="button" id="idex_admin" style="display: yes" value="admin"
onclick=’document.f1.action="admin.php";document.f1.submit();’/>
<input name="admin" />

[/php]

 

Aquí tenim un exemple de menús tipus TINYdropdown  veurem que no es possible passar paràmetres quant un d’aquests fa referencia a un programa diferent. El mètode que detallo aquí l’he utilitzat molt fent el software del “POLIDICCCIONARI”. Si escrivim qualsevol cosa a la casella admin, veurem que si la volem passar al modul “admin” nomes ho posem fer amb “HTML” amb $_POST[admin].

El que si que permet TINYdropdown es simular que prem el boto “admin” amb una bunció javascript:

[php]

a onclick=’admin()’ href=’javascript:void(0); ‘> admin

[/php]

I la funció javascript es:

[php]

function admin(){
//alert ("boto go_admin");
document.getElementById("idex_go_admin").click();

}

[/php]

Finalment el codi de “top_menu.php” es
[php]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>TinyDropdown 2 – animated javascript dropdown</title>
<link rel="stylesheet" href="tinydropdown.css" type="text/css" />
<script type="text/javascript" src="default.js"></script>

<div class="nav">

<p class="title">

<img src="cat.png" style="float:right; margin: 0 20px;" alt="FAS logo" />Gramàtica Catalana
<form class="form" method="post" name="f1" >
<input name="admin" type="button" id="idex_admin" style="display: yes" value="admin"
onclick=’document.f1.action="admin.php";document.f1.submit();’/>
<input name="admin" />
</p>

<ul id="menu" class="menu">
<li><a href="#" title="Fonètica i ortografia" target="_top">Inici</a>
<ul>
<li><a href="#" target="_top">Inici</a></li>
<li><a href="#" target="_top">contactar</a></li>
</ul>

<li><a href="#" title="Fonètica i ortografia" target="_top">Fonètica i ortografia</a>
<ul>
<li><a href="#" title="Vocalisme: fonètica" target="_top">Vocalisme: fonètica</a></li>
<li><a href="#"title="Vocalisme: A/E " target="_top">Vocalisme: A/E </a></li>
<li><a href="#"title="Vocalisme: O/U " target="_top">Vocalisme: O/U </a></li>
<li><a href="#"title="Separació de síl·labes " target="_top">Separació de síl·labes </a></li>
<li><a href="#"title="Accents i dièresi" target="_top">Accents i dièresi </a></li>
<li><a href="#"title="Archived photo portfolio" target="_top">- regles d’accentuació</a></li>
</ul>

<li><a href="#" title="Current work for sale" target="_top">Morfologia i sintaxi</a>
<ul>
<li><a href="#" title="Recent work for sale" target="_top">Lèxic</a></li>
<li><a href="#"title="Archived photo portfolio" target="_top">Gènere: casos especials</a></li>
<li><a href="#"title="Archived photo portfolio" target="_top">Nombre: casos especials</a></li>
<li><a href="#"title="Archived photo portfolio" target="_top">adjectiu</a></li>
<li><a href="#"title="Archived photo portfolio" target="_top">Q o C</a></li>
<li><a href="#"title="Archived photo portfolio" target="_top">Article apòstrof i contracció</a></li>
</ul>

<li><a href="#" title="Current work for sale" target="_top">lèxic i expressió</a>
<ul>
<li><a href="#" title="Recent work for sale" target="_top">Lèxic</a></li>
<li><a href="#"title="puntuació: ús de la coma" target="_top">puntuació: ús de la coma</a></li>
<li><a href="#"title="La descripció" target="_top">La descripció</a></li>
<li><a href="#"title="guió per parlar d’una novel·la" target="_top">guió per parlar d’una novel·la</a></li>
<li><a href="#"title="text argumentatiu" target="_top">text argumentatiu</a></li>
<li><a href="#"title="Article d’opinió" target="_top">Article d’opinió</a></li>
</ul>
</li>

<li class="nodiv"><a onclick=’admin()’ href=’javascript:void(0); ‘> Admin </a>
</li>
</ul>

<script type="text/javascript">
var dropdown=new TINY.dropdown.init("dropdown", {id:’menu’, active:’menuhover’});
</script>

</head>
<body>

</body>
</html>
[/php]

i el CSS

[php]
* {margin:0; padding:0; outline:0}

/* menu bar background and text */
.nav {
height:100%;
min-height:500px;
width:100%;
padding: 5px 10px 5px 10px;
background:url(images/verd_claret.gif);
/*background-color:#BDB9C3;*/
color:#4D4959;
text-shadow:0px 0px #888;
z-index:100;
}

.nowrap {
white-space: nowrap ; /* mateixa linia*/
}
/* link */
.menu a {float:left; color:#4D4959; text-decoration:none; width:130px; height:40px; padding-top:8px; font-weight:bold;}
.menu span {float:left; color:#4D4959; text-decoration:none; width:130px; height:40px; padding-top:8px}

/* link hover, background pale-blue, text dk-grey */.menu a:hover {color:#FFFFFF; background:#9EBFE2}

.menu {list-style:none; font:16px Arial,Verdana; text-align:center; margin:0 0; padding: 0 0;}
.menu li {position:relative; float:left; width:130px; z-index:100;}

/* drop menu, background darker-green, text smaller */
.menu ul {display:none; position:absolute; font:normal 14px Arial,Verdana; top:36px; left:0; url(images/verd_claret.gif); display:none; list-style:none}
.menu ul li {float:none; width:130px; border-top:0px solid #ccc;}
.menu ul li a, li.menuhover li a, li.menuhover li.menuhover li a {float:none; display:block; background:#d5eeee; height:35px; padding-top:5px; margin: 5px 0px;}

/* drop menu link hover, background pale-blue, text white 21007F */
.menu ul li a:hover, li.menuhover li a:hover, li.menuhover li.menuhover li a:hover {background:#9EBFE2; color:#FFFFFF; }

.menu ul li span, li.menuhover li span, li.menuhover li.menuhover li span {float:none; display:block; background:none; height:22px; padding-top:5px}
.menu ul ul {left:130px; top:0}
.menu li.submenu {font-weight:bold}
.menu li.noborder {border-top:none}

/* drop menu link hover, background pale-blue, text dk-grey */
li.menuhover a, li.menuhover li.menuhover a {color:#4D4959; background:#9EBFE2}
li.menuhover span, li.menuhover li.menuhover span {color:#4D4959; background:#9EBFE2}

/* following added by me for the header – nothing to do with the menu above */

p.title {
color: #4D4959;
background-color: inherit;
font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
font-size: 26px;
font-weight: bold;
padding: 8px;
text-align: center;
}

[/php]

Photoshop. dreceres de teclat

Ctrl+N Crea nou document
Ctrl+O obrir document
Ctrl+W Tancar document actual
Ctrl+”+” Ampliar zoom sobre la imagen
Ctrl+”-“ Disminuir zoom sobre la imagen
Ctrl+0 Ajustar la imagen al tamaño de la pantalla
Ctrl+Z Deshacer
Ctrl+Alt+Z Deshacer paso hacia atrás
Tabulador Oculta o muestra los paneles (pudiendo dejar así la imagen a pantalla completa)
Ctrl+T Transformación libre
Ctrl+R Mostrar u ocultar reglas
Ctrl+Tab Desplazarse por imágenes abiertas en Photoshop
Alt+May+Ctrl+S Guardar para web (muy utilizado si tienes un blog)
F2 Cortar
F3 Copiar
F4 Pegar
F12 Volver
D y C Cambia entre los colores de fondo y predeterminado
H Herramienta Mano (ideal para mover la imagen cuando hemos aplicado zoom)
B Herramienta pincel
V Herramienta puntero
W Varita mágica
M Marco rectangular de selección
C Cortar
E Borrador
U Rectángulo
T Texto
J Pincel corrector
G Cubo de pintura
P Pluma
S  Tampón de clonar
O  Sobreexponer
Z Zoom

 

Capas

Para trabajar con Photoshop hay que saber dominar las capas. La importancia de las mismas hace que tengan una gran cantidad de atajos de teclado destinados a su manejo. Estos son algunos:

Shift+Ctrl+N Nueva capa
Shift+Ctrl+Alt+N Nueva capa sin cuadro de diálogo (crea una capa nueva sin mostrarnos el cuadro de diálogo para que le pongamos nombre)
Ctrl+J Nueva capa vía Copiar
Mayús+Ctrl+J Nueva capa vía Cortar
Ctrl+Shift+] La capa seleccionada pasa a la parte superior
Ctrl+Shift+E Combinar capas visibles
Ctrl+Alt+A Seleccionar todas las capas
Ctrl+I Invertir los colores de la capa
Q Activa la capa rápida
F7 Mostrar u ocultar ventana de capas
Ctrl+B Equilibrio de color (abre el cuadro de diálogo para modificar los ajustes de color)
Ctrl+U Tono/Saturación de color
Ctrl+Shift+U Desaturar color
Ctrl+Alt+I Cambiar tamaño de la imagen
Ctrl+M Ajuste de curvas de colores
Ctrl+L Ajustar niveles de colores
Ctrl+1 Ampliar al 100%

 

Firefox profile

Tots els canvis que feu a Firefox, com la pàgina d’inici, les barres d’eines que feu servir, les extensions que heu instal·lat, les contrasenyes desades i les adreces d’interès, es guarden totes en una carpeta especial anomenada perfil (C:\Users\urqte\AppData\Roaming\Mozilla\Firefox). La vostra carpeta de perfils s’emmagatzema en un lloc independent del programa Firefox de manera que, si alguna cosa va malament amb Firefox, la informació encara hi serà. També significa que podeu desinstal·lar Firefox sense perdre la configuració i no heu de tornar a instal·lar Firefox per esborrar la informació o per solucionar un problema.
Es pot consultar -> about:profiles

Coronavirus may infect up to 70% of world’s population, expert warns

Last Updated Mar 2, 2020 7:43 PM EST

Boston — The coronavirus death toll now tops 3,000 worldwide, with nearly 90,000 cases. But even those numbers are nothing compared to what could happen in the months ahead.

CBS News spoke to one of the country’s top experts on viruses, Marc Lipsitch from Harvard University, who cautions that 40-70% of the world’s population will become infected — and from that number, 1% of people who get symptoms from COVID-19, the disease caused by the coronavirus, could die. The virus can spread rapidly and people can transmit it before they know they are infected.

Lipsitch breaks down his findings in this extended conversation with CBS News. The following transcript has been lightly edited for clarity.

Jim Axelrod: So, the number that I think is grabbing a lot of people is this estimate: 40-70% of the world’s adult population could be infected.

Marc Lipsitch: Yes.

Axelrod: Accurate?

Lipsitch: That is a projection, so we will find out if it’s accurate as things go on. It is the best estimate that I’ve been able to make based on a combination of the mathematical models that we use to track and predict epidemics.

Axelrod: So in terms of addressing the numbers that may get people panicked, what can you tell us?

Lipsitch: Well, again, the “40-70%” is a proportion of the population — adult population infected. We know that some people who get this infection have no or almost no symptoms whatsoever. What we don’t know is how many there are like that.

Lipsitch: So say that’s half the people. Then the 1% or 2% that we’re seeing in the symptomatic people is cut down by half. Whatever the number is, it’s gonna take a toll. If it really does spread as widely as that projection says, and that’s what I think is likely to happen, then there are gonna be millions of people dying. And I don’t think there’s any way to get around that. And so I think there’s real reason for people to be concerned. I also think that we can turn that concern into actions that will make the situation better.

Axelrod: Just to clarify before we get into the actions, the 1% of people who are symptomatic, that fatality rate, that’s also not a straight mathematical equation. People over 65 may be more susceptible. People under 30 may be less susceptible, correct?

Lipsitch: So the susceptibility to symptomatic infection seems to go up strictly with age, and especially up at the very oldest ages. Among those who are symptomatic, the risk of dying goes up further. So it really is concentrated in those older age groups, the high risk.

Axelrod: You, who knows as much as anybody about this, are using words like “if” and “Well, we hope.” The fact is, we really just don’t know what to expect, do we?

Lipsitch: I think we have some bounds on what to expect. I think it is now almost inevitable that this will transmit in a global fashion and take a big toll on essentially the entire globe. I just don’t see any way around that given the number of places where we know about it and the number of places where we haven’t looked, and therefore, can infer that some of those places also probably have it.

Axelrod: When considering preparation, what should people be doing to prepare, aside from storing food or medicine? Mentally, what should people be doing to prepare?

Lipsitch: I think there’s a reasonable chance that public gatherings will be restricted either by legal authority — although I think that’s less likely — or by voluntary decisions of people. That includes church services and other forms of gathering in large groups.

Lipsitch: In terms of making things better and preparing, I think one thing we can do is, for business owners and those who are in charge of workplaces, to make it easier for people to stay home if they’re sick count sick days during this pandemic. On the individual level, that also means preparing oneself to stay home when sick in order to help prevent transmission to others.

Axelrod: I heard some people over the weekend just anecdotally saying, “Oh, SARS was supposed to be bad. Bird flu was supposed to be bad. The 2009 flu was supposed to be bad. And it wasn’t. I’m not gonna subscribe to the sky is falling. And this isn’t gonna be that bad.” You’re saying, “Time out, this actually is qualitatively different”?

Lipsitch: This is qualitatively different from SARS and MERS in the sense that it is ten times bigger than SARS already, or more and about ten bigger than SARS and it is way more widespread. And it’s clearly not under control in the way that SARS was at this point or near this point.

Axelrod: And for people tryin’ to get their arms around this right now, I think it’s a worthwhile question to ask you. Is this coronavirus an existential threat?

Lipsitch: This is not an existential threat. This is, qualitatively, it’s very much like a bad pandemic of influenza, which we experienced arguably twice or three times in the 20th Century. It’s worse than the one that we experienced in 2009. But none of those brought civilization close to its knees. They made things awful for a while.

Axelrod: And this won’t either?

Lipsitch: And this will not either.

No, the world is not ending

php instruccions d’us freqüent(1)

salt de línia: <br>   <?php echo “hello wold1 <br> hello world 2”;

– //es fa la conexió amb la BD
$conn= mysqli_connect(DB_HOST, DB_USER, DB_PWD, DB_NAME);

//s’escriu a la BD

$SQL =”UPDATE $taula SET castella=’$castella’ WHERE id= ‘$idx’ “;
$result = mysqli_query($conn,$SQL);

//llegir registres d’una taula de BD ( include(‘conexió&results.php’);

$conn= mysqli_connect(DB_HOST, DB_USER, DB_PWD, DB_NAME);// fa la conexió
$conn->set_charset("utf8mb4");
$result = mysqli_query($conn,$SQL);//llegeix i carrega matriu
$num_results = $result->num_rows;

Llegir una fila d’una taula

DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_USER', 'root');
DEFINE ('DB_PASSWORD', 'beseit00');
DEFINE ('DB_NAME', 'polidic_eng');

$conn = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME)
OR die (‘Could not connect to MySQL:’ .mysqli_connect_error());
$conn->set_charset(“utf8mb4”);
//echo “Host information: ” . mysqli_get_host_info($conn) . PHP_EOL;
$SQL = “SELECT * FROM parametres WHERE id=1 LIMIT 1”; //ordre mysql
$result = mysqli_query($conn,$SQL);//llegeix i carrega matriu
$camps = mysqli_fetch_assoc($result);
$encerts=$camps[‘compt_encerts’];
$fallades= $camps[‘compt_fallades’];
$total= $encerts + $fallades;
echo “encerts: $encerts, fallades:$fallades”;
$puntuacio= round(($encerts/$total)*10,2);

afegir un registre

$SQL = "INSERT INTO $_POST[taula](catala,castella,qualificador,aux)VALUES( '$catala','$definicio','$qualificador','$aux')";
if (mysqli_query($conn, $SQL)) {echo "New record created successfully";}