Wednesday, February 12, 2014

C# Todo sobre puertos Serial(COM) y Paralelo(LPT )

How to program Read,Write parallel port in C#?
http://sandeep-aparajit.blogspot.com/2008/08/io-how-to-program-readwrite-parallel.html

Parallel port
http://www.epanorama.net/circuits/parallel_output.html
http://www.epanorama.net/circuits/parallel_output_es.html

I/O Ports Uncensored - 1 - Controlling LEDs (Light Emiting Diodes) with Parallel Port
http://www.codeproject.com/KB/cs/csppleds.aspx?df=100&forumid=21021&exp=0&select=974134

I/O Ports Uncensored Part 2 - Controlling LCDs (Liquid Crystal Displays) and VFDs (Vacuum Fluorescent Displays) with Parallel Port
http://www.codeproject.com/KB/cs/cspplcds.aspx

How to Capture LPT Port(s) to Intercept DOS Print Requests
http://www.codeproject.com/KB/system/LPTCapture.aspx

Recursos:
Lpt Monitor y muchos otros muy útiles
http://neil.fraser.name/software/
Com Monitor
http://www.serial-port-monitor.com/
Drivers para dispositivos varios controlados por puertos LPT o COM
http://www.kitsrus.com/software.html

Se detectó un posible valor Request.Form peligroso en el cliente …

en inglés se llama “A potentially dangerous Request.Form value was detected from the client”.

varias páginas indican dos cosas:
1. agregar en la cebecera del pagina aspx
<%@ Page validateRequest="false" %>

2. modificar web.config

< validaterequest="false">

...

pero no siempre funciona, o almenos no para lo que yo queria, entonces lo solucione con el siguiente tag:

[ValidateInput(false)]
public ActionResult SaveEdition(FormCollection form)
{
string editorValue = HttpUtility.HtmlDecode(Request["txtEditor"].ToString());
return null;
}

sobre el método que recibe el codigo html en su respectivo text o textarea


Adicionalmente para versiones recientes:

Agregar lo sgte en <system.web> :

<httpRuntime requestValidationMode="2.0" />




ASP.NET MVC: Implementing HTTP File Upload

Referencias:
[1]  http://www.hanselman.com/blog/ABackToBasicsCaseStudyImplementingHTTPFileUploadWithASPNETMVCIncludingTestsAndMocks.aspx

Tuesday, February 11, 2014

Windows 7, Build 7600, This Copy of Windows is not genuine

open cmd (as Adminstrator), type next command and wait to message for restart

> slmgr -rearm


Tuesday, January 28, 2014

Medidor de Ancho de Banda / Bandwith Meter

< ?php

$data = file_get_contents("textfile.txt"); //obtener la informacion

$fsize = filesize("textfile.txt") / 1024; //determinar el tamaño del archivo en KB: minimo 500k
//Definir el tiempo de comienzo
$start = time();
//enviamos la informacion al usario
echo "";
//definir el momento en que termina la transimicion
$stop = time();

$duracion = $stop - $start; //Calcular diferencia de tiempo
//Dividimos el tamaño del archivo por el numero de segundos que tardo la
transmicion
$speed = round($fsize / $duraccion,2);
//mostramos el resultado en kb
echo "La velocidad de tu red: $speed KB/SEC.";
?>


Referencias:
[1] Php src ftp://concordia.psi.br/pub/linux/apache/bandwidthmeter-0.72.zip

Testers:

[1] www.tracert.org/bandwidth_meter
[2] Telefonica Movistar (Java) 200.121.63.90:8081/myspeed/myspeed_line_appspeed.html
[3] http://www.caezar.net/speedtestnet-medidor-de-ancho-de-banda.html
[4] http://speedtest-netgauge.movistar.cl/

W7/Winamp Do you want to allow the following program to make changes to this computer?

Disable Run As Administrator (don't work), only you need is download and Install appropiate Enhancer Wrapper.


Resources
[1] http://www.nunzioweb.com/daz/enhancer/

Wednesday, January 22, 2014

Wake On LAN/WAN



References:
[1] http://www.adslzone.net/tutorial-20.21.html
[2] http://www.wakeonlan.me/

Resources:
[1] Single magic package sende http://www.depicus.com/wake-on-lan/wake-on-lan-gui.aspx
[2] More early magic package sender http://magicpacket.free.fr/
[3] Portable/Console magic package sender http://www.matcode.com/wol.htm

 

2021

[1] https://help.ubuntu.com/community/WakeOnLan

[2] https://www.techrepublic.com/article/how-to-enable-wake-on-lan-in-ubuntu-server-18-04/

***note*** check the right filename interfaces or 01-network-manager-all.yaml

cat /etc/network/interfaces

sudo vi /etc/netplan/01-network-manager-all.yaml
network:
  version: 2
  renderer: NetworkManager
  ethernets:
    enp5s0:
      match:
        macaddress: 24:4b:fe:58:4d:cd
      dhcp4: true
      wakeonlan: true

Arduino - Power Supply ATX


References:

[1] http://www.instructables.com/id/Arduino-Controlled-ATX-Power-Supply/?lang=es
[2] Books (Start Guides) http://www.poli.br/~marcilio/Arduino/Livros%20sobre%20Arduino/

Friday, January 17, 2014

Visual Studio & Aplicaciones moviles

Referencias
[1]  http://stackoverflow.com/questions/12787352/visual-studio-and-mobile-phone-development


Router HG520s - Comandos


>show all
>show lan
>show wan node 0l

>ip address | status | ping xxx.xxx.xxx.xxx


Comandos Telnet:
Desconectar: ip detach ppp-0
Conectar: ip attach ppp-0 ppp-0
Logout: user logout


Referencias
http://www.networktutorials.info/router_commands.html
http://www.taringa.net/posts/ebooks-tutoriales/2211110/Como-routear-un-MODEM-Huawei-SmartAx-MT880-+-Configurar-Red.html

Cisco
http://www.cisco.com/en/US/docs/routers/access/700/software/command/reference/700CRsys.html

Thursday, January 02, 2014

Eliminar redirección a megaline.co


Iniciar cmd como Administrador (ejecutar los dos comandos siguientes)

> ipconfig /flushdns
>netsh winsock reset

Reiniciar PC


GNU utilities for Win32


Same Linux Commands over Windows ( grep, cat,...)

Resources:
[1] http://unxutils.sourceforge.net/

Friday, December 13, 2013

OT 639G

http://www.startimes.com/f.aspx?t=33257571

Thursday, November 28, 2013

Linux Multimedia BackTrack-Ubuntu

RMVB
http://leandronunes.org/2009/04/22/rmvb-no-linux-sem-complicacao/
Codecshttp://www.vivaolinux.com.br/artigo/Rodando-videos-.rmvb-no-Linux


1) Mp3 Player (xmms)
http://tombott.com/install_xmms_on_ubuntu_8.04_8.10_9.04_9.10_10.04_last.fm_scrobble


1.1) if you have dependency problems

[1.1.a] http://howik.com/Install_XMMS_on_Ubuntu_10.04
[1.1.b] https://launchpad.net/ubuntu/hardy/i386/libglib1.2ldbl/1.2.10-19build1
[1.2.c] https://launchpad.net/ubuntu/+source/gtk+1.2/1.2.10-18.1build2/+build/484191

if xmms don't play mp3, showing next message:

** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): No such file or directory

then, change preferences:


xmms --> Preferences --> Audio I/O Plugins --> OSS Driver 1.2.10 --> Configure --> Audio Device

was changed from "Default (Intel HD Audio play output)" to "Use alternate device: /dev/dsp0"


2) MPLAYER
http://www.backtrack-linux.org/forums/showthread.php?t=25037

2.1) MPlayer dependency

gtk http://www.gtk.org/download/linux.php
  |
 +-- glib http://ftp.acc.umu.se/pub/gnome/sources/glib/
       |
      +-- libffi https://launchpad.net/ubuntu/+source/libffi/3.0.9-1

 +-- atk http://ftp.gnome.org/pub/gnome/sources/atk/
 +-- cairo https://launchpad.net/ubuntu/+source/cairo/1.8.10-2ubuntu1
    + https://launchpad.net/ubuntu/+source/pixman/0.24.4-1
 +-- pango http://ftp.gnome.org/pub/gnome/sources/pango/
 +--
 +-- gdk pixbuf http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/

Tuesday, November 19, 2013

Wednesday, November 13, 2013

Who using my port 80/8080/8085/Other?

Windows Plataform

> netstat -aon  | grep "LIST"
> netstat -aon  | grep ":80" | grep "LIST"

*Get pid (Process id) and execute next command

>tasklist | grep "xxxx" 

* xxxx is pid value

Resume for W7


>netstat -aon  | grep ":80" | findstr "LIST"
>tasklist | findstr "xxxx" 
Linux Plataform
#lsof

or

#netstat -tulpn | grep :80

..continue


Notes:
If you mean MS-DOS then there's only FIND, as far as I know. But it's an ancient OS not used anymore.
If you mean NT(XP/2K/7/Vista)'s Command Prompt you can use find, findstr and grep if you download GnuWin32.
The basic differences are that findstr has some regex support. Grep supports regex best.

References:
[1] http://superuser.com/questions/300815/command-prompt-msdos-windows-7-grep-equivalent


Facturador Sunat SEE SFS (Linux)

    /usr/lib/jvm/java-8-openjdk-amd64/bin/java -jar ./facturadorApp-2.1.jar server prod.yaml References: [1] Make temp certificate for test...