Archive for the ‘Programación’ Category

Tip: How to detect with PHP if iPhone visits your site

Saturday, January 30, 2010 2:17 1 Comment

Currently I’m developing some websites which “can be visited from iPhone” [the customer say that], the big thing is: there are some javascripts functions to detect it but when you use it with jQuery this “lock” the effects.
The solution is so easy, you just need to use this PHP script:
PHP<5.3.0

if (ereg('iPhone',$_SERVER['HTTP_USER_AGENT']))
{
header("Location:/iphone.html");
}

PHP>=5.3.0

if (preg_match("/iPhone/",$_SERVER['HTTP_USER_AGENT']))
{
header("Location:iPhone.php");
}

Take Care: Is Important [...]

This was posted under category: Cómo, Mozilla, PHP, Programación, Tips, iPhone

TIP: Evitar ordenamiento de columnas en DataGridView

Sunday, October 11, 2009 18:52 4 Comments

Para evitar que puedan ordenarte una columna en una Grilla de Windows Form [DataGridView], simplemente debes agregar este código luego de InitializeComponents();
en C#

GrillaCampos.Columns["NombreDeLaColumna"].SortMode = DataGridViewColumnSortMode.NotSortable;

en VB.Net

GrillaCampos.Columns("NombreDeLaColumna").SortMode = DataGridViewColumnSortMode.NotSortable

Saludos!

This was posted under category: .Net, C#, Programación, Tips, VB.Net

Demo Twitter InstallFest Win7

Thursday, October 8, 2009 18:28 No Comments

Ayer en el InstallFest de Windows7 hablé sobre una API de twitter llamada twitterizer, la cuál habíamos traducido parcialmente y nombrado como CondorNet.
El demo . y la DLL traducida (su código fuente )
[Este post es cortísimo pues la libreria tiene autenticación directa, y actualmente twitter actualiza por medio de OAuth  así que tenemos que [...]

This was posted under category: .Net, C#, Programación, Twitter

InstallFest de Windows 7 en DuocUC

Monday, October 5, 2009 1:01 No Comments

El próximo 7 de octubre se desarrollará un nuevo Install-Fest de Windows 7. Esta vez en DuocUC sede San Andrés.
Como siempre la entrada y la instalación son gratuitas y a ver si se llevan instalado Microsoft Security Essentials [el nuevo antivirus de Microsoft.]
Dentro del programa se realizarán un par de Charlas por parte de Alejandro [...]

This was posted under category: Charlas, Concepción, Células Académicas, DuocUC, Eventos, Programación, Twitter, Virtualización, Windows 7