<     May 2017     >
Su Mo Tu We Th Fr Sa  
    1  2  3  4  5  6  
 7  8  9 10 11 12 13  
14 15 16 17 18 19 20  
21 22 23 24 25 26 27  
28 29 30 31
00:01 Illuminazi joined
00:01 <lalita> Illuminazi: Te damos la bienvenida a #pyar
00:01 <Illuminazi> Hola gente
00:26 wxr joined
00:42 mguillech joined
00:43 nicoechaniz joined
00:48 D3f0 joined
01:21 wxr joined
01:31 TheCoffeMaker joined
01:42 D3f0 joined
01:55 mguillech joined
02:06 cramm joined
02:10 leandrobrunner joined
02:28 leandrobrunner joined
02:59 dlitvak joined
03:06 D3f0 joined
03:11 mguillech joined
03:20 wxr joined
03:31 samsagaz joined
04:00 D3f0 joined
04:01 nicoechaniz joined
05:03 leandrobrunner joined
05:24 D3f0 joined
05:25 mguillech joined
05:33 leandrobrunner joined
05:41 leandrobrunner joined
05:44 carpediem joined
05:46 leandrobrunner joined
06:01 leandrobrunner joined
06:18 D3f0 joined
06:40 fuaa joined
07:27 mguillech joined
07:38 angelluis joined
07:42 D3f0 joined
08:04 wxr joined
08:26 fuaa2 joined
08:36 D3f0 joined
08:50 pcaruana joined
10:43 wxr joined
10:55 D3f0 joined
11:18 leandrobrunner1 joined
11:18 <lalita> leandrobrunner1: Te damos la bienvenida a #pyar
12:18 D3f0 joined
12:34 pcaruana joined
12:53 angelluis_ joined
13:00 juangh joined
13:12 D3f0 joined
13:20 GiLgAmEzH joined
13:20 <GiLgAmEzH> StyXman: :-( me quede con las ganas che. te debo unas birras. Tengo la flia en casa.
13:30 juangh joined
13:33 juan4 joined
13:33 <lalita> juan4: Te damos la bienvenida a #pyar
14:23 juantelez joined
14:25 D3f0 joined
15:01 chinosoliard joined
15:04 wxr joined
15:08 angelluis_ joined
15:18 angelluis_ joined
15:28 chinosoliard joined
15:28 chinosoliard joined
15:28 TheCoffeMaker joined
15:28 TheCoffeMaker joined
15:29 GiLgAmEzH joined
15:35 D3f0 joined
15:45 wxr joined
15:51 mefistofeles joined
15:55 wxr joined
16:03 MA|Pablo3 joined
16:09 angelluis_ joined
16:35 angelluis_ joined
16:55 D3f0 joined
17:13 angelluis_ joined
17:16 angelluis joined
17:38 fuaa2 joined
17:49 D3f0 joined
18:22 wxr joined
18:34 marcfp joined
18:34 marcfp joined
18:36 dcastillo joined
18:36 <lalita> dcastillo: Te damos la bienvenida a #pyar
18:36 <dcastillo> Buenas
18:37 marcfp left
18:44 dcastillo_ joined
18:44 <lalita> dcastillo_: Te damos la bienvenida a #pyar
18:46 mguillech joined
18:47 <dcastillo_> Pregunta, si necesitan algo para subir servicios (Por ej: httpd, smb, tomcat, etc...) en un servidor cuando estos se caigan que ves mejor un cron que revise cada 2 minutos los servicios y en caso de que esten off los ponga on, o crear un mini backend con python para poder subir estos servicios?
19:01 <ralsina> dcastillo_: supervisor
19:01 <ralsina> dcastillo_: o, si es un linux medianamente moderno, systemd tiene como hacer eso, creo
19:03 <dcastillo_> FedoraServer 25
19:03 <dcastillo_> tiene systemd
19:08 humitos joined
19:09 <ralsina> dcastillo_: ok, segun la documentacion deberia hacerlo solo, si no me acuerdo mal
19:09 <ralsina> dcastillo_: https://www.freedesktop.org/software/systemd/man/systemd.service.html
19:09 <lalita> ralsina: [#15378] systemd.service
19:13 D3f0 joined
19:14 <dcastillo_> Gracias Ralsina revisare a ver
19:19 mguillech joined
19:46 angelluis_ joined
19:48 nicolas17 joined
19:57 chinosoliard joined
20:05 MA|Pablo3 joined
20:07 D3f0 joined
20:20 chinosoliard joined
20:43 nicoechaniz joined
20:56 mguillech joined
21:00 fuaa2 joined
21:03 delfox_ joined
21:14 MA|Pablo3 joined
21:18 fuaa joined
21:22 mguillech joined
21:26 nicoechaniz joined
21:29 Nico__ joined
21:31 D3f0 joined
21:59 angelluis_ joined
22:07 Luciano_ joined
22:07 <Luciano_> buenas
22:10 juantelez joined
22:12 kobain joined
22:21 fuaa joined
22:25 D3f0 joined
22:30 mad88 joined
22:30 <mad88> hola
22:30 <mad88> alguien me ayuda con unas variables?
22:31 <mad88> tengo que guardar una variable en un archivo, pero quiero despreciar a partir del segundo decimal
22:31 <mad88> como se hace para darle formato a la variavle numerica antes de guardarla??
22:31 wxr joined
22:33 mguillech joined
22:37 nicolas17 left
22:41 <mefistofeles> mad88: puede usar format para eso
22:43 <mefistofeles> mad88: por ejemplo supongamos que tiene la variable guardada en la variable "valor"
22:43 <mefistofeles> o mejor doy un ejemplo con código xD
22:45 <mefistofeles> mad88: de hecho, creo que la mejor forma es usando la función round
22:46 <mefistofeles> mad88: round(valor, numero_cifras_significativas)
22:46 <mefistofeles> entonces algo como round(valor, 2) debe funcionar
22:59 godlike joined
23:37 mguillech joined
23:43 <mad88> mefistofeles: no me anda.... (sera por que la variable no esta definida como numerica??)
23:48 <mefistofeles> mad88: probablemente, qué tipo de variable es?
23:48 <mefistofeles> si es un string entonces hay dos formas, o pasarla a flotante o usar format
23:49 D3f0 joined
23:53 mguillech joined
23:54 <mad88> no se que tipo de variable es, por que me la devuelve una funcion, estaba tratando de ver con type(var) pero tampoco puedo...
23:55 <mad88> vos no me decis como se usa el format y la formateo en float o algo similar
23:57 <mad88> estoy viendo un oprograma que tiene (adentro de un print) %.2f y eso recortaria lso decimales a solo dos
23:57 <mad88> eso no lo puedo usar dentro del f.write ???