Wednesday, May 08, 2019

Internet PerĆŗ



Movitar
http://www.movistar.com.pe/hogar/internet/solo-internet


Claro
http://www.claro.com.pe/negocios/fijos/internet-plus/
http://www.claro.com.pe/negocios/fijos/adicionales/direcciones-ip-publicas/


Entel
https://www.entel.pe/hogar/internet/planes/


Star Global Com
http://starglobal.esy.es/index.php/gallery/tarifainternet


Win
https://win.pe/ (Lima)


Planos/Tarifas VPS Brasil/PerĆŗ


Provedores Brasil

[0] https://dokehost.com.br/cloud-vps-windows-e-linux-com-protecao-ddos

[1] https://minivps.com.br/linux/brasil/
[2] https://www.weblink.com.br/servidores
[3] https://www.vpsbrasil.com/vpslinux
[4] https://www.hostinger.com.br/servidor-vps (Boleto bancario)

[5] https://br.godaddy.com/hosting/vps-hosting



Proveedores PerĆŗ
[1] https://www.sitiohost.pe/vps/
[2] https://www.bluehosting.pe/vps/ (PerĆŗ) BCP/Interbank
[3] https://www.rackeo.pe/virtualizacion/
[4] https://www.boxhosting.pe/vps/


[5] https://pe.godaddy.com/hosting/vps-hosting-vps4



International
[1] https://clients.databasemart.com/cart.php
[2] https://hostry.com/products/vps/

Tuesday, May 07, 2019

Fedora VPN

 
wget https://git.io/vpn -O openvpn-install.sh
 
 
References:
[1] https://www.ostechnix.com/easiest-way-install-configure-openvpn-server-linux/ 
[2] https://kifarunix.com/install-and-setup-openvpn-server-on-fedora-29-centos-7/2/
 
Reopen connection after close during openvpn execing 


Linux:
Connection drop after active openvpn 
/etc/sysctl.conf
net.ipv4.ip_forward = 1   

Windows:
https://www.geeknetic.es/Noticia/10486/Trucos-Como-usar-una-VPN-accediendo-a-Internet-con-tu-conexion-local.html
https://tutorialesenlinea.es/409-conectar-por-vpn-sin-perder-la-conexion-a-internet.html
https://social.technet.microsoft.com/Forums/es-ES/044c7659-3f63-42fd-b15f-f75a4291c080/conectarse-por-vpn-a-un-equipo-remoto-y-perder-la-conexin-a-internet-con-los-demas-programas?forum=servinfoeslatames
http://elblogdejuanbo.blogspot.com/2011/10/conexion-desde-casa-una-vpn-sin-perder.html
 
 


Monday, April 29, 2019

Python plot maps and polygons





Map Resources:
[1] http://www.arcgis.com/home/item.html?id=3fd6eb2de569477ca83b2b65da8ecb6f

Source for plot:
[1]


Aditional Lectures
[1] http://dan-scientia.blogspot.com/2009/10/centroide-de-um-poligono.html
[2] https://www.matematica.pt/faq/poligono-convexo.php
[3] https://github.com/deparkes/shapely_tests
[4] https://shapely.readthedocs.io/en/stable/manual.html
[5] https://en.wikipedia.org/wiki/Centroid#Centroid_of_polygon
[6] Centro Geodesico https://ww2.ibge.gov.br/home/geociencias/geodesia/artigos/1996_Centro_Geodesico_Centroide.pdf

Visual Center
[1] https://blog.mapbox.com/a-new-algorithm-for-finding-a-visual-center-of-a-polygon-7c77e6492fbc
[2] https://github.com/mapbox/polylabel
[3] Poly Decomp https://mpen.ca/406/motivation

Python basemap
[1] https://matplotlib.org/basemap/users/examples.html
[2] https://github.com/matplotlib/basemap/tree/master/examples


sudo apt-get install libgeos-3.5.0
sudo apt-get install libgeos-dev
sudo pip install https://github.com/matplotlib/basemap/archive/master.zip
 
Results:
https://github.com/fincahuanaco/covid19peru 
Next Step
https://towardsdatascience.com/easy-steps-to-plot-geographic-data-on-a-map-python-11217859a2db
 
 

Wednesday, April 24, 2019

Deep Learning


Resources

[1] Classification 6 class (pt) https://www.linkedin.com/pulse/classifica%C3%A7%C3%A3o-de-imagens-atrav%C3%A9s-deep-learning-s%C3%A9rgio-saraiva/

1) http://demo.caffe.berkeleyvision.org/
2) http://playground.tensorflow.org

Additional
[1] https://medium.com/analytics-vidhya/python-implementation-of-andrew-ngs-machine-learning-course-part-1-6b8dd1c73d80


Classify Dog/Cat (Under evaluation)

1) https://medium.com/@harsathAI/cats-and-dogs-classifier-convolutional-neural-network-with-python-and-tensorflow-9-steps-of-6259c92802f3

2) https://towardsdatascience.com/image-classifier-cats-vs-dogs-with-convolutional-neural-networks-cnns-and-google-colabs-4e9af21ae7a8


3) https://github.com/georgeblu1/Dog-Vs-Cat

4) https://github.com/girishkuniyal/Cat-Dog-CNN-Classifier


Google tools
[1] Big picture  https://research.google.com/bigpicture
[2] Database Search https://toolbox.google.com/datasetsearch/search

Thursday, April 04, 2019

Latex \printnomenclature doesn't work

Add to TexStudio or your favorite editor, the user command:

makeindex %.nlo -s nomencl.ist -o %.nls


And for update, compile, execute the above user command, and compile again.
 
 

Monday, April 01, 2019

Ubuntu 16 - VMWare Player 12 - GCC Not found


First solution
cd /usr/lib/vmware/modules/source 
wget https://github.com/mkubecek/vmware-host-modules/archive/player-12.5.9.zip 
unzip player-12.5.9.zip 
cd vmware-host-modules-player-12.5.9/vmmon-only/ 
make 
cd ../vmnet-only/ 
make 
cd .. 
mkdir /lib/modules/`uname -r`/misc 
cp vmmon.o /lib/modules/`uname -r`/misc/vmmon.ko 
cp vmnet.o /lib/modules/`uname -r`/misc/vmnet.ko 
depmod -a /etc/init.d/vmware restart


Second solution

mkdir ~/vmmodules #create a temp folder and copy files.
cp /usr/lib/vmware/modules/source/vmnet.tar /usr/lib/vmware/modules/source/vmmon.tar ~/vmmodules/ 
# make the modules manually 
tar -xvf vmmon.tar 
cd vmmon-only 
make 
cd .. 
sudo cp vmmon.o /lib/modules/`uname -r`/kernel/drivers/misc/vmmon.ko.gz 
tar -xvf vmnet.tar 
cd vmnet-only 
make 
cd .. 
sudo cp vmnet.o /lib/modules/`uname -r`/kernel/drivers/misc/vmnet.ko.gz 
#Then reload the modules and restart vmware service, vmplayer should works now. 
sudo depmod -a 
sudo systemctl restart vmware


Thrid solution

#install the right version of gcc
$sudo apt-get install g++-4.9 

Trick

$sudo sed 's/gcc version 5.4.0/gcc version 6.4.0/' /proc/version > /tmp/version
$sudo mount --bind /tmp/version /proc/version
$sudo vmware-modconfig --console --install-all
$sudo umount /proc/version && rm /tmp/version


Final solution 2019
Update kernel from 4.4 to 4.11 works good[2] and download from [3].

References:
[1] https://unix.stackexchange.com/questions/310637/vmware-kernel-module-a-compatible-version-of-gcc-was-not-found
[2] Update kernel https://www.howtoforge.com/tutorial/how-to-upgrade-linux-kernel-in-ubuntu-1604-server/
[3] Ubuntu kernels https://kernel.ubuntu.com/~kernel-ppa/mainline/
[4] Update Ubuntu 18 kernel https://www.tecmint.com/upgrade-kernel-in-ubuntu/ 

Thursday, March 21, 2019

Cuda Installation resources





Cuda 10:
[1] last version https://developer.nvidia.com/cuda-downloads
Cuda 8:

#error -- unsupported GNU version! gcc versions later than 5 are not supported!
#error -- unsupported GNU version! gcc versions later than 5 are not supported!


$ sudo ln -s /usr/bin/gcc-4.9 /usr/local/cuda/bin/gcc
$ sudo ln -s /usr/bin/g++-4.9 /usr/local/cuda/bin/g++
 
 

nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).



[1] https://developer.nvidia.com/cuda-80-ga2-download-archive

Fluid animation tools


Courses:
[1] bridson https://www.cs.ubc.ca/~rbridson/fluidsimulation/

Resources and Source Code:
[1] PBD http://www.interactive-graphics.de/index.php/research/108-a-survey-on-position-based-dynamics-2017

Wednesday, March 20, 2019

mySQL ODBC Driver error 5.2


Error 1918. Error installing ODBC driver MySQL ODBC
 5.3 ANSI Driver, ODBC error 13: The setup routines for
 the MySQL ODBC 5.3 ANSI Driver ODBC driver could
 not be loaded due to system error code 126: The


Solution:
MySQL Connector/ODBC requires Microsoft Visual C++ 2010 redistributable so you have to install it first.

Resources:
  [1]  MySQL Connector/ODBC 32-bit version, you have to download and install Microsoft Visual C++ 2010 Redistributable Package (x86).
  [2]  MySQL Connector/ODBC 64-bit version, you have to download and install Microsoft Visual C++ 2010 Redistributable Package (x64).

mySQL try to Optimize



References:

[1] https://dev.mysql.com/doc/refman/5.7/en/insert-optimization.html

[1] connection options https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-configuration-connection-parameters.html#codbc-dsn-option-flags
[2] autocommit problem http://www.mysqlab.net/knowledge/kb/detail/topic/innodb/id/5934
[3] 101 tips https://www.monitis.com/blog/101-tips-to-mysql-tuning-and-optimization/
[4] Create table  https://dev.mysql.com/doc/refman/8.0/en/create-table.html


Tuesday, March 19, 2019

Bluetooth resources






Resources:
[1] http://people.csail.mit.edu/albert/bluez-intro/index.html

Factura electronica - PerĆŗ


PadrĆ³n de RUC

[1] ~428MB http://www.sunat.gob.pe/descargaPRR/mrc137_padron_reducido.html
[2] Servicio online ruc.com.pe


Recursos:
[1] Tutorial facturaciĆ³n electrĆ³nica  https://www.noticierocontable.com/facturador-sunat/


[2] http://clubdecontadores.com/conoce-cinco-mitos-uso-las-facturas-electronicas/
[3] Factura electronica http://revistas.pucp.edu.pe/index.php/revistalidera/article/viewFile/16873/17181
[4] http://cpe.sunat.gob.pe/factura-desde-los-sistemas-del-contribuyente

Software:
[1] http://orientacion.sunat.gob.pe/index.php/empresas-menu/comprobantes-de-pago-empresas/comprobantes-de-pago-electronicos-empresas/facturador-sunat/6785-03-requisitos-para-su-uso

Servicio online privados
[1] jperez https://sistema.susii.net/login
[2] admin https://demo.developer-technology.com/facturacion_electronica/login.php

Proveedores:

[1] PSE http://cpe.sunat.gob.pe/quien-es-el-proveedor-de-servicios-electronicos-pse

[2] Listao PSE http://orientacion.sunat.gob.pe/index.php/empresas-menu/comprobantes-de-pago-empresas/comprobantes-de-pago-electronicos-empresas/see-desde-los-sistemas-del-contribuyente/2-comprobantes-que-se-pueden-emitir-desde-see-sistemas-del-contribuyente/factura-electronica-desde-see-del-contribuyente/3550-padron-de-proveedores-de-servicios-electronicos-pse

[3] HomologaciĆ³n http://orientacion.sunat.gob.pe/images/cdp-electronicos/padron-pse/ManualHomologacinPSEagosto2016.pdf
PSE Precio https://www.nubefact.com/precios
[4] https://portal.efact.pe/soluciones/factura-electronica-plataforma-online.html



Saturday, March 16, 2019

Postgres Lectures for improve performance



References:
[1] https://revs.runtime-revolution.com/streaming-data-in-postgres-43c502a6732
https://revs.runtime-revolution.com/streaming-data-in-postgres-43c502a6732
[2] https://blog.timescale.com/scalable-postgresql-high-availability-read-scalability-streaming-replication-fb95023e2af/
[3] https://www.pipelinedb.com/
[4] https://www.citusdata.com/blog/2017/11/08/faster-bulk-loading-in-postgresql-with-copy/
[5] https://dzone.com/articles/postgresql-vs-hadoop

Stream Music from your Linux PC to Android Cellphone Speaker



1) SoundWire

2) WiFiAudio Server for Linux 64bit

References:
[1] Client https://appuals.com/stream-audio-pc-android-device/
[2] Server http://georgielabs.net/
[3] http://wifiaudio.boards.net/thread/2/wifiaudio-support-links-download-application
[4] WifiAudio Sever Linux 64bits http://wifiaudio.boards.net/attachment/download/6

Linux Remote Desktop


sudo apt-get update
sudo apt-get install xrdp 
 
#desktop
sudo apt-get install mate-core mate-desktop-environment mate-notification-daemon
 
#setting session
sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n mate-session \n' /etc/xrdp/startwm.sh
 
#firewall

sudo ufw allow 3389/tcp
 
#Use remmina desktop to connect
 


Extra
 
service --status-all
printf 'Desktop: %s\nSession: %s\n' "$XDG_CURRENT_DESKTOP" "$GDMSESSION"

References:
[1] Setting xrdp https://medium.com/@vivekteega/how-to-setup-an-xrdp-server-on-ubuntu-18-04-89f7e205bd4e
[2] https://websiteforstudents.com/connect-to-ubuntu-16-04-17-10-18-04-desktop-via-remote-desktop-connection-rdp-with-xrdp/
[3] Print desktop name and session
https://askubuntu.com/questions/72549/how-to-determine-which-window-manager-is-running


Friday, March 15, 2019

SSH Skip port forwarding


Instant terminal sharing
https://tmate.io/


Share your UNIX terminal in seconds!
https://www.teleconsole.com/

Share local machine port to public access
https://serveo.net/
https://github.com/milio48/serveo
$wget https://raw.githubusercontent.com/milio48/serveo/master/serveo.sh 

$./serveo.sh tcp 5432 0

vs ngrok
Serveo is an excellent alternative to ngrok. Serveo was inspired by ngrok and attempts to serve many of the same purposes. The primary advantage of Serveo over ngrok is the use of your existing SSH client, so there's no client application to install.

Other slight advantages include preservation of URLs across reconnect for free (ngrok allows this only for paid accounts) and in-terminal request inspection and replay (ngrok uses a web interface).

vs OpenSSH

Using Serveo instead of OpenSSH frees you from having to configure and maintain a server. It also handles HTTPS and subdomain generation, two features that complicate a typical SSH port-forwarding setup.

Apache Guacamole is a clientless remote desktop gateway


http://guacamole.apache.org/


Manual mode (A like to connect to B)

PCA ----+----  PCB
            |
          PCX

Server Side (PCX Need root permission)

$sudo vi /etc/ssh/sshd_config

AllowTcpForwarding yes
GatewayPorts yes


$sudo firewall-cmd --add-port=7004/udp [--permanent]
$sudo firewall-cmd --add-port=7004/tcp [--permanent]

Target PCB

$ssh -f -N -R 7004:127.0.0.1:22 -l user_PCX -p port PCX(ip/domain name)
This means open port 7004 on PCX forwarding to port 22, PCX will start to listen on port 7004.

Source PCA
$ssh PCX(ip/domain name) -l user_PCB -p 7004

Enjoy!



References:
[1] https://rootsaid.com/ssh-without-port-forwarding/
[2] https://linuxhint.com/ssh-port-forwarding-linux/
[3] https://dev.to/samuyi/the-how-to-of-ssh-port-forwarding-1f4e



Tuesday, March 12, 2019

Review documents


Resources:

[1] https://www.visaoerevisao.com
[2] https://www.editage.com.br
[3] http://www.nativeenglish.com.br/ (word)

Monday, March 11, 2019

Ubuntu route (s)



ip route list

route

route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.169.5.1



sudo route del -net 192.168.76.0/24
and
sudo route del -net 192.168.76.0 netmask 255.255.255.0


References:
[1] https://www.cyberciti.biz/faq/linux-route-add/

Running apps

Runtastic (I uninstalled because force to update your device - Internet connection problems) Runkeeper  (Wrong GPS tracking) Strava   (Curr...