Tuesday, June 15, 2010

Links necesarios

pagina blancas directo
http://paginasblancas.com.pe/resultados.asp?t=225151

guid
http://createguid.com/

firefox personal addon
http://foro.elhacker.net/programacion_general/howto_crear_extensiones_para_firefox-t127159.0.html

Firefox Developer

Addon make new addons
http://ted.mielczarek.org/code/mozilla/extensiondev/

How To Disable ‘will not be installed because it does not provide secure updates’ Warning in Firefox 3



By default, Firefox 3 prevents users from installing any extensions that do not offer a secure connection for automatic updates. This prevents users from being victims of hijacked update URLs.

But for developers or people installing extensions they know they can trust, it is a pain.

Luckily it is easily disabled by:

1. Enter ‘about:config’ into address bar, hit go
2. Right click somewhere in the list of keys below. Select New->Boolean
3. Enter ‘ extensions.checkUpdateSecurity ‘ as the name
4. Select false as the value
5. Reattempt installation of your plugin.

Ran into this problem when installing Extension Developer’s Extension while working on Read It Later.

Found the solution at MozillaZine (via Google)

Saturday, June 12, 2010

DNS IP Tools

Dns verifyier
https://www.dns-oarc.net/oarc/services/dnsentropy

IP Information Country/City/Map and more...
http://whatismyipaddress.com/ip-lookup

IP tools
http://www.iptools.com/

TCPView Similarly
http://www.nirsoft.net/utils/cports.html

Información de host

show variables like 'host%'

Tuesday, June 08, 2010

ASP.NET HttpException: Maximum request length exceeded

Limite por defecto para uploads en Web.Config es 4096 (4 megabytes)

Las siguientes lineas cambian a 20MB

<configuration>
...
<system.web>
...
<httpRuntime maxRequestLength="20480" />
</system.web>
</configuration>


Otras Configuraciones

<httpRuntime executionTimeout="300" maxRequestLength="51200"/>
<httpRuntime
executionTimeout="1200"
maxRequestLength="102400"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100" />

Nota:
maxRequestLength<=1048576 (1 GB) para .NET Framework 1.0/1.1 y
maxRequestLength<=2097151 (2 GB) for .NET Framework 2.0.

Referencias
FileUpEE - Large Uploads in ASP.NET:
http://support.softartisans.com/docs/fileupeev4/doc/dotnet/aspdotnet_largeuploads.asp

FileUpSE - large uploads in ASP.NET:
http://support.softartisans.com/docs/fileupv4/prog_g_dotnet_largeuploads.htm

Thursday, June 03, 2010

Modern Talking

http://www.taringa.net/posts/musica/1518848/Discografia-de-Modern-Talking.html

Monday, May 24, 2010

SyntaxHighlighter on Web & Blogger

1. Download the latest version
2. Unrar to a temp folder. ex: c:\temp\syntaxhighlighter
3. Transfer the folders (Scripts and Styles) to a web server. I use google code to host my files.
4. Open blogger.com and sign in.
5. Goto "Template" and choose "Classic" layout.
6. Goto Edit Html.
7. After <head> insert the following:

<link href="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Styles/SyntaxHighlighter.css" type="text/css" rel="stylesheet" /> </link>
<script language="javascript" src="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/shCore.js"></script>
<script language="javascript" src="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/shBrushCSharp.js"></script>
<script language="javascript" src="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/shBrushXml.js"></script>
<script language="javascript" src="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/shBrushCss.js"></script>
<script language="javascript" src="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/shBrushJScript.js"></script>
<script language="javascript" src="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/shBrushSql.js"></script>

8. And before </body> insert:

<script language="javascript">
dp.SyntaxHighlighter.ClipboardSwf = 'http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
</script>

or
<script language='javascript'>
dp.SyntaxHighlighter.BloggerMode();
dp.SyntaxHighlighter.HighlightAll('code');
</script>

Fuente:
http://morten.lyhr.dk/2007/12/how-to-get-syntax-highlighting-in.html
http://code.google.com/p/syntaxhighlighter/w/list
for Blogger
http://yacoding.blogspot.com/2008/05/how-to-add-syntax-highlight-to-blogger.html

C# Resize image


public void ResizeImage(string OriginalFile, string NewFile, int NewWidth, int MaxHeight, bool OnlyResizeIfWider)
{
System.Drawing.Image FullsizeImage = System.Drawing.Image.FromFile(OriginalFile);

// Prevent using images internal thumbnail
FullsizeImage.RotateFlip(System.Drawing.RotateFlipType.Rotate180FlipNone);
FullsizeImage.RotateFlip(System.Drawing.RotateFlipType.Rotate180FlipNone);

if (OnlyResizeIfWider)
{
if (FullsizeImage.Width <= NewWidth)
{
NewWidth = FullsizeImage.Width;
}
}

int NewHeight = FullsizeImage.Height * NewWidth / FullsizeImage.Width;
if (NewHeight > MaxHeight)
{
// Resize with height instead
NewWidth = FullsizeImage.Width * MaxHeight / FullsizeImage.Height;
NewHeight = MaxHeight;
}

System.Drawing.Image NewImage = FullsizeImage.GetThumbnailImage(NewWidth, NewHeight, null, IntPtr.Zero);

// Clear handle to original file so that we can overwrite it if necessary
FullsizeImage.Dispose();

// Save resized picture
NewImage.Save(NewFile);
}


Resources
=========
C#: Resize An Image While Maintaining Aspect Ratio and Maximum Height

http://www.switchonthecode.com/tutorials/csharp-tutorial-image-editing-saving-cropping-and-resizing

Sunday, May 23, 2010

Encriptar/Desencriptar texto

http://online.arredemo.org/codificar/

Lugares interesantes

Correo anonimo
http://superpatanegra.com/correoanonimo/index.php
Invertir teto
http://generadores.arredemo.org/girartexto/
flv player
http://superpatanegra.com/banners/index-video.php
http://superpatanegra.com/textoaimagen/image.php
email a imagen
http://superpatanegra.com/email/

Saturday, May 22, 2010

Recovery Password

http://mediakey.dk/~cc/howto-how-to-reset-the-mysql-root-password/

Targetas de crédito

Bancos
http://en.wikipedia.org/wiki/List_of_Bank_Identification_Numbers

Generador de números de targeta de crédito validas aleatorias
http://mediakey.dk/~cc/wp-dyn/credit-card-number-generator.php

http://www.darkcoding.net/credit-card-generator/

Genera codigo vv2
http://www.xonico.com.ar/index.php?s=CodigoCC

http://generadores.arredemo.org/ccgenerador/

Thursday, May 20, 2010

Great design and scripts

http://www.cssplay.co.uk/menus/
http://blogvecindad.com/lista-completa-de-menus-con-css-para-diseandores-web/2007/06/05
http://www.dynamicdrive.com/dynamicindex1/omnislide/index.htm
http://www.javascriptkit.com/script/cutindex16.shtml
http://www.creativeprogramming.it/blogs/wp/index.php/2009/08/19/gwt-ext-how-to-programmatically-swap-themes/#tb
http://www.daniweb.com/forums/thread127263.html

JavaScript Resources

http://www.dynamicdrive.com/dynamicindex16/
http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm
http://www.quizzpot.com/2009/10/combo-box-loaded-dynamically-and-remotely/

Tuesday, May 18, 2010

Erotic pictures gallery

This summary is not available. Please click here to view the post.

Friday, May 14, 2010

Restaurando VS2008

Si perdiste tus templates los puedes restaurar asi

>devenv /ResetSettings
En mi caso fue asi.
>C:\Archivos de programa\Microsoft Visual Studio 9.0\Common7\IDE>devenv /resetset
tings

Ayuda ASP.NET MVC2

http://feeds.feedburner.com/climens_aspnetmvc

NHibernate

NHibernate y localización
http://codelog.climens.net/2010/03/16/nhibernate-y-localizacion/

Thursday, May 13, 2010

jQuery para iframe

http://huuah.com/jquery-and-iframe-manipulation/

Trabajando con Delegados en C#

Codigo 1
==========================================
public delegate void DelegateType(string message);


Codigo 2
==========================================

public static void Method(string message)
{
System.Console.WriteLine(message);
}

Función cualquiera con la misma firma que DelegateType es decir void xxx(string yyy)

Codigo 3
==========================================

DelegateType handler = Method; //Esto es posible xq DelegateType es una referencia
//a funciones con la firma void xxx(string yyy).

handler("Hello World"); //Llama a Method

Codigo 4
==========================================

public void MethodWithCallback(int param1, int param2, DelegateType callback)
{
callback("The number is: " + (param1 + param2).ToString());
}


Codigo 5
==========================================
MethodWithCallback(1, 2, handler); //Llamada enviando una referencia a Method

Codigo 6
==========================================
public void Method1(string message) { }
public void Method2(string message) { }

DelegateType d1 = Method1;
DelegateType d2 = Method2;
DelegateType d3 = Method;
DelegateType allMethodsDelegate = d1 + d2;//assigna referencia a d1 y d2
allMethodsDelegate += d3; //agrega referencia a una tercera funcion


Codigo 8
==========================================
allMethodsDelegate -= d1; //elimina d1 de la lista de referencias
DelegateType oneMethodDelegate = allMethodsDelegate - d2; //Copia todos menos d2

Codigo 9
==========================================
int invocationCount = d1.GetInvocationList().GetLength(0); //Cantidad de referencias

Codigo 10
==========================================


using System.Reflection;

namespace DemoDelegate
{
public delegate void D();

public class ComprobaciónDelegados

{

public static void Main()
{

Type t = typeof(ComprobaciónDelegados);
MethodInfo m = t.GetMethod("Metodo1");
D obj = (D) Delegate.CreateDelegate(typeof(D), m);
obj();
}



public static void Metodo1()

{ Console.WriteLine("Ejecutado Método1"); }



public static void Metodo2(string s)

{ Console.WriteLine("Ejecutado Método2");
}

}
}

Wednesday, May 05, 2010

Tuesday, May 04, 2010

C# Report with Images

Show images into reports on C# (ReportViewer)

Mime types

http://www.ltsw.se/knbase/internet/mime.htp

VPN Linux & Windows

Acceso telefonico a redes TELMEX
http://www.deperu.com/internetgratis/Windows_XP.htm

OpenVPN
http://www.alcancelibre.org/staticpages/index.php/openvpn-clientes-win-linux-shorewall-P2
http://peloenpecho.blogcindario.com/2008/05/00003-armando-una-vpn-cliente-servidor-con-linux.html

Friday, April 23, 2010

Grids

http://www.hasankoroglu.com/demos/flexigrid/
http://pixelco.us/blog/240-plugins-para-jquery/
http://code.google.com/p/flexigrid/
http://www.dataprix.com/blogs/magm/plugin-eglu-jquery-flexigrid-2-versi-n-01-documentaci-n
http://www.extjs.com/deploy/dev/examples/grid/grid-plugins.html
http://www.extjs.com/deploy/dev/examples/
http://www.trirand.com/blog/jqgrid/jqgrid.html

El API de Java

http://www.scribd.com/doc/2621827/Tutorial05api

Shared Library
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

http://java.sun.com/j2se/1.5.0/docs/guide/vm/class-data-sharing.html

On Windows too
http://journals.ecs.soton.ac.uk/java/tutorial/native1.1/stepbystep/step5.html
http://www.javaworld.com/javaworld/javatips/jw-javatip23.html

Load C++ LIbrary from Java
http://www.nag.co.uk/industryArticles/CallingCLibraryRoutinesfromJava.pdf
How to write shared Library
http://people.redhat.com/drepper/dsohowto.pdf

Ringtones alta calidad

http://www.zedge.net/ringtones/3-6-1/

Thursday, April 22, 2010

JavaScript Debug en IE

http://www.my-debugbar.com/wiki/CompanionJS/HomePage

Microondas

http://casaames.com/index2.php?option=com_content&task=view&id=48
http://casaames.com/index2.php?option=com_content&do_pdf=1&id=48

Wednesday, April 21, 2010

Networking Linux

Monitorizar red desde Linux, no necesarimente funciona en debian
http://www.ex-parrot.com/pdw/iftop/

$ sudo iftop -i eth0

Tuesday, April 20, 2010

Drawing

http://www.midtel.net/~imaginee/the_drawing_board.html

Friday, April 16, 2010

Servicio Web

Servicios Web libres en la red
http://www.webservicex.net/WS/CATs.aspx?CATID=12&DESC=Utilities

Implementar un WebService desde php
http://ityprogramacion.blogspot.com/2005/12/como-crear-un-web-service-en-php.html


Creando proxy apartir de un WSDL

C:\Archivos de programa\Microsoft SDKs\Windows\v6.0A\Bin>wsdl /l:cs /protocol:SOAP http://www.kusaconsultores.es/services/impuestos.php?wsdl

Utilidades en la Web

JPG a Texto
http://www.pcworld.com/article/171435-2/19_free_web_services_that_keep_saving_you_money.html

Deploying a Java Web Start Application

http://java.sun.com/docs/books/tutorial/deployment/webstart/deploying.html

Running apps

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