<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jorgelig Blog &#187; Programacion</title>
	<atom:link href="http://www.jorgelig.com/category/programacion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jorgelig.com</link>
	<description>Jorgelig Blog, mi lado Friki al natural...</description>
	<lastBuildDate>Tue, 17 Jan 2012 17:13:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://www.jorgelig.com/?pushpress=hub'/>
		<item>
		<title>Ejemplo sencillo de jQote2</title>
		<link>http://www.jorgelig.com/2011/11/06/ejemplo-sencillo-de-jqote2/</link>
		<comments>http://www.jorgelig.com/2011/11/06/ejemplo-sencillo-de-jqote2/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 19:10:33 +0000</pubDate>
		<dc:creator>Jorgelig</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[callback]]></category>
		<category><![CDATA[hasmap]]></category>
		<category><![CDATA[jQote2]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.jorgelig.com/?p=962</guid>
		<description><![CDATA[jQote es un plugin para llenar plantillas con objetos JSON, este es un sencillo ejemplo usando jQote para llenar una plantilla previamnte guardada en un hashmap.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p>jQote es según esta gráfica uno de los mas rápidos, una de las razones por las que decidimos por usarlo.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://aefxx.com/wp-content/uploads/2010/03/jqote.benchmarks.png" alt="Comparativa" width="576" height="255" /></p>
<p>Para este ejemplo usaremos un template previamente cargado en hashmap y no un elemento del DOM, el markup es el siguiente:<br />
<script type="text/javascript" src="https://gist.github.com/1339931.js?file=AgentNavigation.htm"></script>Hacemos la peticion al servicio:<script type="text/javascript" src="https://gist.github.com/1339931.js?file=svc.js"></script><br />
Lo que nos debe regresar un objeto JSON, en el ejemplo los datos del JSON A usar estan dentro de &#8220;result.data&#8221;:<br />
<script type="text/javascript" src="https://gist.github.com/1339931.js?file=JSON%20Response"></script>Ahora simplemente llenamos el template, que esta previametne cargado en un hashmap, para accesar a una propiedad o meter codigo dentro del template debemos hacerlo entre los simbolos &lt;% %&gt;:<script type="text/javascript" src="https://gist.github.com/1339931.js?file=ui.js"></script></p>
<p>jQote2 | <a title="API reference" href="http://aefxx.com/api/jqote2-reference/" target="_blank">API documentation</a><br />
Archivos ejemplo | <a title="Download" href="https://gist.github.com/1339931" target="_blank">Download</a></p>
</div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jorgelig.com/2011/11/06/ejemplo-sencillo-de-jqote2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Abrir folder in Windows Explorer desde eclipse</title>
		<link>http://www.jorgelig.com/2011/11/03/open-in-windows-explorer-eclipse/</link>
		<comments>http://www.jorgelig.com/2011/11/03/open-in-windows-explorer-eclipse/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 10:00:08 +0000</pubDate>
		<dc:creator>Jorgelig</dc:creator>
				<category><![CDATA[Programacion]]></category>

		<guid isPermaLink="false">http://www.jorgelig.com/?p=873</guid>
		<description><![CDATA[Tip para abrir el explorador de windows en una carpeta especifica del workspace desde eclipse


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p>En el menu contextual(clic derecho) del explorador de la solución de Visual Studio se puede abrir el explorador de windows directamente en la ubicacion de un folder, algo que aveces es util y eclipse no tiene, pero se puede configurar:</p>
<ol>
<li>Ir al menu Run-&gt;External Tools-&gt;Open External Tools Dialog&#8230;<img class="aligncenter size-medium wp-image-944" title="OpenExternal" src="http://www.jorgelig.com/wp-content/uploads/2010/12/eclipseConfiguration-290x300.png" alt="" width="290" height="300" /></li>
<li>Agregar una configuracion donde Location apunta a explorer.exe con los argumentos &#8220;/n,/e,${container_loc}&#8221; y listo</li>
</ol>
<p><a href="http://www.jorgelig.com/wp-content/uploads/2010/12/EclipseOpenExplorerConfiguration.png"><img class="aligncenter size-medium wp-image-945" title="EclipseOpenExplorerConfiguration" src="http://www.jorgelig.com/wp-content/uploads/2010/12/EclipseOpenExplorerConfiguration-300x267.png" alt="" width="300" height="267" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jorgelig.com/2011/11/03/open-in-windows-explorer-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error locating JDK: set $JAVA_HOME or put javac and jarsigner on your $PATH</title>
		<link>http://www.jorgelig.com/2011/11/01/error-locating-jdk-set-java_home-or-put-javac-and-jarsigner-on-your-path/</link>
		<comments>http://www.jorgelig.com/2011/11/01/error-locating-jdk-set-java_home-or-put-javac-and-jarsigner-on-your-path/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 13:00:43 +0000</pubDate>
		<dc:creator>Jorgelig</dc:creator>
				<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[WebTip]]></category>

		<guid isPermaLink="false">http://www.jorgelig.com/?p=929</guid>
		<description><![CDATA[Fix para el error: Error locating JDK: set $JAVA_HOME or put javac and jarsigner on your $PATH


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p>Desde hace rato que instale el Appcelerator y traia ganas de hacer unas pruebas con un hola mundo Android pero por falta de tiempo siempre lo pospongo, resulta que ya instale el JDK y Titanium Studio me dice que no encuentra el JDK, buscando un ratito encontre este fix para windows:</p>
<ol>
<li>Ir a variables de Entorno [Clic derecho Mi PC-&gt;Propiedades...Configuracion Avanzada del sistema-&gt;Variables de Entorno...]</li>
<li>Seleccionar la variable de entorno &#8220;path&#8221; y editar&#8230;</li>
<li>Agregar un &#8220;;&#8221; (sin comillas ¬¬ ) y poner el path del JDK, en mi caso: &#8220;C:\Program Files (x86)\Java\jdk1.7.0_01\bin&#8221;</li>
<li>Cerrar las ventanas y reiniciar  Titanium Studio.</li>
</ol>
<div>Fuente | <a title="Foro Appcelerator" href="http://developer.appcelerator.com/question/21091/error-error-locating-jdk-set-javahome-or-put-javac-and-jarsigner-on-your-path" target="_blank">Foro Appcelerator</a></div>
<p>&nbsp;</p>
</div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jorgelig.com/2011/11/01/error-locating-jdk-set-java_home-or-put-javac-and-jarsigner-on-your-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compilar proyecto en el servidor sin usar Visual Studio</title>
		<link>http://www.jorgelig.com/2011/10/31/compilar-proyecto-en-el-servidor-sin-usar-visual-studio/</link>
		<comments>http://www.jorgelig.com/2011/10/31/compilar-proyecto-en-el-servidor-sin-usar-visual-studio/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 19:40:14 +0000</pubDate>
		<dc:creator>Jorgelig</dc:creator>
				<category><![CDATA[Programacion]]></category>

		<guid isPermaLink="false">http://www.jorgelig.com/?p=897</guid>
		<description><![CDATA[Pequeño tip para compilar un projecto sin usar Visual Studio.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p>Se &#8220;supone&#8221; que antes de liberar un cambio a producción debe compilarse y probarse en ambiente &#8220;developer&#8221;, pero aveces es necesario compilar el proyecto directamente en producción [uuuuuuuuuh que mello,*zape  monkey developer malo malo U_U ]; En una consola vamos a la ruta donde esta instalado el Framework correspondiente al de la aplicacion y ejecutamos msbuild dandole de parametro el archivo *.vbproj de nuestro respectivo proyecto:</p>
<p>C:\Windows\Microsoft.NET\Framework\v4.0.30319&gt;<br />
msbuild /property:Configuration=Release MyFile.vbproj</p>
</div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jorgelig.com/2011/10/31/compilar-proyecto-en-el-servidor-sin-usar-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RadScriptManager vs ScriptManager</title>
		<link>http://www.jorgelig.com/2011/07/21/radscriptmanager-vs-scriptmanager/</link>
		<comments>http://www.jorgelig.com/2011/07/21/radscriptmanager-vs-scriptmanager/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 17:15:37 +0000</pubDate>
		<dc:creator>Jorgelig</dc:creator>
				<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[ASPX]]></category>
		<category><![CDATA[Optimizacion]]></category>
		<category><![CDATA[Telerik]]></category>

		<guid isPermaLink="false">http://www.jorgelig.com/?p=913</guid>
		<description><![CDATA[Comparativa entre RadScriptManager y el ScriptManager.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p>Estamos probando los controles de Telerik en el trabajo y recien cambiamos el ScriptManager de .NET por el RadScriptManager que es la version de Telerik, y me lleve una buena sorpresa:</p>
<p>El RadScriptManager optimiza el numero de Reource que mete en las paginas, lo que impacta en menos request y mucho menos archivos que bajar. Esto nos optimiza ancho de banda y tiempos de carga de la pagina. Les dejo un screenshot(clic para ver tamaño completo):</p>
<p style="text-align: center;"><a title="Ver Tamaño Completo" rel="http://www.jorgelig.com/wp-content/uploads/2011/07/ScriptManager-vs-RadScriptManager.png" href="http://www.jorgelig.com/wp-content/uploads/2011/07/ScriptManager-vs-RadScriptManager.png" target="_blank"><img class="aligncenter size-full wp-image-914" title="ScriptManager vs RadScriptManager" src="http://www.jorgelig.com/wp-content/uploads/2011/07/ScriptManager-vs-RadScriptManager.png" alt="" width="600" height="400" /></a></p>
</div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jorgelig.com/2011/07/21/radscriptmanager-vs-scriptmanager/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Gmap, extensión de Google Maps para Yii</title>
		<link>http://www.jorgelig.com/2010/10/03/gmap-extension-de-google-maps-para-yii/</link>
		<comments>http://www.jorgelig.com/2010/10/03/gmap-extension-de-google-maps-para-yii/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 08:59:48 +0000</pubDate>
		<dc:creator>Jorgelig</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[WebTip]]></category>
		<category><![CDATA[Yii]]></category>
		<category><![CDATA[Extensión]]></category>
		<category><![CDATA[gmap]]></category>
		<category><![CDATA[Google maps]]></category>

		<guid isPermaLink="false">http://www.jorgelig.com/?p=820</guid>
		<description><![CDATA[gmap una extensión para Yii que nos permite usar en la pagina un mapa de Google Maps


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p>gmap es una extensión para Yii que nos permite incrustar un mapa de &#8220;Google maps&#8221; fácilmente, es cosa de pasarle como parametro la direccio, ciudad, estado y pais.</p>
<p><strong>Requisitos</strong>:</p>
<ul>
<li>Yii 1.0 o superior</li>
</ul>
<p><strong> Instalación </strong></p>
<ul>
<li>Descargar el archivo <a href="http://www.yiiframework.com/extension/gmap/files/gmap.zip">zip</a></li>
<li>Descomprimirlo en la carpeta &#8220;protected/extensions/gmap&#8221;</li>
</ul>
<p><strong>Uso</strong></p>
<ul>
<li>Agregar este código en la parte donde se quiera mostrar el mapa:</li>
<p><BR /></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">widget</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'application.extensions.gmap.GMap'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'gmap'</span><span style="color: #339933;">,</span><span style="color: #666666; font-style: italic;">//id del contenedor &lt;div&gt;.</span>
    <span style="color: #0000ff;">'key'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'xxx'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//Para obtener una key, debes registrarte aqui: http://code.google.com/intl/es-419/apis/maps/signup.html</span>
    <span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'nombre_lugar'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//este texto aparecerá en el logo de dialogo señalando el punto</span>
    <span style="color: #0000ff;">'address'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'address'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'yyyy'</span><span style="color: #339933;">,</span><span style="color: #666666; font-style: italic;">//Introducir la direccion del lugar, pe: 'Santa María 200,Rincón de Santa María'</span>
        <span style="color: #0000ff;">'city'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'zzzzz'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//Nombre de la ciudad, pe: Monterrey</span>
        <span style="color: #0000ff;">'state'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'aaaaa'</span><span style="color: #666666; font-style: italic;">//Estado, pe: Nuevo Leon</span>
        <span style="color: #666666; font-style: italic;">//'country' =&gt; 'bbbbbb' //Pais</span>
        <span style="color: #666666; font-style: italic;">//'zip' =&gt; 'XXXXX' - //Codigo Postal</span>
        <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

</ul>
<p><strong> Personalización </strong></p>
<ul>
<li>Cambiar tamaño: Modificar el archivo gmap.css que se encuentra en &#8220;protected/extensions/gmap/css/&#8221;</li>
<li>Añadir controles: Modificar la función &#8220;ShowMap&#8221; del archivo gmap.js que se encuentra en, quedando de la siguiente manera:</li>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	showMap<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>point<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>typeof this<span style="color: #339933;">.</span>map <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'object'</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			this<span style="color: #339933;">.</span>map <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GMap2<span style="color: #009900;">&#40;</span>document<span style="color: #339933;">.</span>getElementById<span style="color: #009900;">&#40;</span>this<span style="color: #339933;">.</span>id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		this<span style="color: #339933;">.</span>map<span style="color: #339933;">.</span>addControl<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> GSmallMapControl<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Linea agregada: controles de zoom</span>
		this<span style="color: #339933;">.</span>map<span style="color: #339933;">.</span>addControl<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> GMapTypeControl<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Linea agregada: controles para tipo de mapa</span>
		this<span style="color: #339933;">.</span>map<span style="color: #339933;">.</span>setCenter<span style="color: #009900;">&#40;</span>point<span style="color: #339933;">,</span> <span style="color: #cc66cc;">14</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>typeof this<span style="color: #339933;">.</span>marker <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;object&quot;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			this<span style="color: #339933;">.</span>marker <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GMarker<span style="color: #009900;">&#40;</span>point<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			this<span style="color: #339933;">.</span>map<span style="color: #339933;">.</span>addOverlay<span style="color: #009900;">&#40;</span>this<span style="color: #339933;">.</span>marker<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			this<span style="color: #339933;">.</span>marker<span style="color: #339933;">.</span>openInfoWindowHtml<span style="color: #009900;">&#40;</span>this<span style="color: #339933;">.</span>label<span style="color: #339933;">||</span>this<span style="color: #339933;">.</span>address<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #b1b100;">else</span>
		<span style="color: #009900;">&#123;</span>
			this<span style="color: #339933;">.</span>marker<span style="color: #339933;">.</span>setLatLng<span style="color: #009900;">&#40;</span>point<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			this<span style="color: #339933;">.</span>marker<span style="color: #339933;">.</span>openInfoWindowHtml<span style="color: #009900;">&#40;</span>this<span style="color: #339933;">.</span>label<span style="color: #339933;">||</span>this<span style="color: #339933;">.</span>address<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span></pre></div></div>

</ul>
</div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jorgelig.com/2010/10/03/gmap-extension-de-google-maps-para-yii/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP Error: A non well formed numeric value encountered</title>
		<link>http://www.jorgelig.com/2010/06/27/php-error-a-non-well-formed-numeric-value-encountered/</link>
		<comments>http://www.jorgelig.com/2010/06/27/php-error-a-non-well-formed-numeric-value-encountered/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 00:00:15 +0000</pubDate>
		<dc:creator>Jorgelig</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Yii]]></category>

		<guid isPermaLink="false">http://www.jorgelig.com/?p=803</guid>
		<description><![CDATA[Solución al Error "A non well formed numeric value encountered" en PHP 5.3.2 y usando el Framework Yii 1.1.2


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p>Este error me salio usando PHP 5.3.2 y Framework Yii 1.1.2 en la siguiente linea de mi view:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #0000ff;">'value'</span><span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'date(&quot;d-m-Y H:i:s&quot;,$data-&gt;fecha_inicio)'</span><span style="color: #339933;">,</span></pre></div></div>

<p>y para solucionarlo hay que usar la funcion strtotime de php, quedando aso:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #0000ff;">'value'</span><span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'date(&quot;d-m-Y H:i:s&quot;,strtotime($data-&gt;fecha_fin))'</span><span style="color: #339933;">,</span></pre></div></div>

<p>Si no tienes configurado el &#8220;timeZone&#8221; en Yii te saldrá un error parecido a este:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> It is not safe to rely on the <span style="color: #990000;">system</span><span style="color: #0000ff;">'s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected '</span>America<span style="color: #339933;">/</span>Chicago<span style="color: #0000ff;">' for '</span>CDT<span style="color: #339933;">/-</span><span style="color:#800080;">5.0</span><span style="color: #339933;">/</span>DST<span style="color: #0000ff;">' instead</span></pre></div></div>

<p>Para configurar el &#8220;timeZone&#8221; debes ir a tu archivo de configuracion de tu proyecto Yii [protected/config/main.php], debe quedar algo asi:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">return</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
	<span style="color: #0000ff;">'timeZone'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;America/Monterrey&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'basePath'</span><span style="color: #339933;">=&gt;</span>dirname<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #009900; font-weight: bold;">DIRECTORY_SEPARATOR</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'..'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'name'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'Cultura UM'</span><span style="color: #339933;">,</span></pre></td></tr></table></div>

<p>Recuerda usar la funcion strtotime en cada view donde requieras mostrar la fecha.</p>
</div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jorgelig.com/2010/06/27/php-error-a-non-well-formed-numeric-value-encountered/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error 1329: No data &#8211; zero rows fetched, selected, or processed</title>
		<link>http://www.jorgelig.com/2010/03/25/error-1329-no-data-zero-rows-fetched-selected-or-processed/</link>
		<comments>http://www.jorgelig.com/2010/03/25/error-1329-no-data-zero-rows-fetched-selected-or-processed/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:55:26 +0000</pubDate>
		<dc:creator>Jorgelig</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.jorgelig.com/?p=774</guid>
		<description><![CDATA[Solución para el error 1329 de MySQL: No data - zero rows fetched, selected, or processed.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p>Programando una Función en Mysql para verificar los inventarios segun los movimientos que ha tenido un articulo, habia una sentencia que me marcaba este error al hacer el SELECT a la función:</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"> <span style="color: #990099; font-weight: bold;">No</span> <span style="color: #990099; font-weight: bold;">data</span> <span style="color: #CC0099;">-</span> zero rows fetched<span style="color: #000033;">,</span> selected<span style="color: #000033;">,</span> <span style="color: #CC0099; font-weight: bold;">or</span> processed</pre></div></div>

<p>Mi Función va algo asi:</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">DELIMITER $$
<span style="color: #990099; font-weight: bold;">DROP</span> <span style="color: #990099; font-weight: bold;">FUNCTION</span> <span style="color: #009900;">IF</span> <span style="color: #990099; font-weight: bold;">EXISTS</span> <span style="color: #008000;">`elarco`</span>.<span style="color: #008000;">`GetExistenciaMovimientos`</span> $$
<span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">FUNCTION</span> <span style="color: #008000;">`GetExistenciaMovimientos`</span><span style="color: #FF00FF;">&#40;</span>idp <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">45</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>ida <span style="color: #999900; font-weight: bold;">INT</span><span style="color: #000033;">,</span>fechai <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">20</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>fechaf <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">20</span><span style="color: #FF00FF;">&#41;</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">RETURNS</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">11</span><span style="color: #FF00FF;">&#41;</span>
<span style="color: #990099; font-weight: bold;">BEGIN</span>
&nbsp;
&nbsp;
<span style="color: #990099; font-weight: bold;">DECLARE</span> ExistenciaAnterior <span style="color: #999900; font-weight: bold;">INT</span><span style="color: #000033;">;</span>
&nbsp;
&nbsp;
<span style="color: #990099; font-weight: bold;">SELECT</span> valornuevo <span style="color: #990099; font-weight: bold;">FROM</span> bitacora <span style="color: #990099; font-weight: bold;">WHERE</span> mensaje<span style="color: #CC0099;">=</span>idp <span style="color: #CC0099; font-weight: bold;">AND</span> fecha<span style="color: #CC0099;">&lt;=</span>fechai <span style="color: #CC0099; font-weight: bold;">AND</span> tipo<span style="color: #CC0099;">=</span><span style="color: #000099;">CONCAT</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'UPDATE'</span><span style="color: #000033;">,</span>ida<span style="color: #FF00FF;">&#41;</span>  <span style="color: #990099; font-weight: bold;">ORDER BY</span> idbitacora <span style="color: #990099; font-weight: bold;">DESC</span> <span style="color: #990099; font-weight: bold;">LIMIT</span> <span style="color: #008080;">1</span> <span style="color: #990099; font-weight: bold;">INTO</span> ExistenciaAnterior<span style="color: #000033;">;</span>
<span style="color: #808000; font-style: italic;">/**
**Varios Select contando los movimientos en entradas,salidas,traspasos,ventas,etc...
*/</span>
RETURN <span style="color: #FF00FF;">&#40;</span>ExistenciaAnterior<span style="color: #CC0099;">+</span>Entradas<span style="color: #CC0099;">+</span>TraspasosEntradas<span style="color: #CC0099;">+</span>AjustesInventarioEntrada<span style="color: #FF00FF;">&#41;</span><span style="color: #CC0099;">+</span><span style="color: #FF00FF;">&#40;</span>Salidas<span style="color: #CC0099;">+</span>TraspasosSalida<span style="color: #CC0099;">+</span>Creditos<span style="color: #CC0099;">+</span>Contados<span style="color: #CC0099;">+</span>OrdenCompra<span style="color: #CC0099;">+</span>AjustesInventarioSalida<span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span>
<span style="color: #009900;">END</span> $$
DELIMITER <span style="color: #000033;">;</span></pre></div></div>

<p>La cosa es que por alguna razón (encontré la solución y por tiempo ya no seguí investigando el porque, si alguien lo sabe agradecería lo comentara <img src='http://www.jorgelig.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  ) el error me salia al hacer la consulta de la Existencia anterior, y lo solucione con la siguiente sentencia una linea antes de hacer la consulta:</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">DECLARE</span> CONTINUE <span style="color: #990099; font-weight: bold;">HANDLER</span> FOR <span style="color: #CC0099; font-weight: bold;">NOT</span> FOUND <span style="color: #990099; font-weight: bold;">SET</span> ExistenciaAnterior <span style="color: #CC0099;">=</span> <span style="color: #008080;">0</span><span style="color: #000033;">;</span></pre></div></div>

<p>Qudando finalmente algo mas o menos asi:</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">DELIMITER $$
<span style="color: #990099; font-weight: bold;">DROP</span> <span style="color: #990099; font-weight: bold;">FUNCTION</span> <span style="color: #009900;">IF</span> <span style="color: #990099; font-weight: bold;">EXISTS</span> <span style="color: #008000;">`elarco`</span>.<span style="color: #008000;">`GetExistenciaMovimientos`</span> $$
<span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">FUNCTION</span> <span style="color: #008000;">`GetExistenciaMovimientos`</span><span style="color: #FF00FF;">&#40;</span>idp <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">45</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>ida <span style="color: #999900; font-weight: bold;">INT</span><span style="color: #000033;">,</span>fechai <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">20</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>fechaf <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">20</span><span style="color: #FF00FF;">&#41;</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">RETURNS</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">11</span><span style="color: #FF00FF;">&#41;</span>
<span style="color: #990099; font-weight: bold;">BEGIN</span>
&nbsp;
&nbsp;
<span style="color: #990099; font-weight: bold;">DECLARE</span> ExistenciaAnterior <span style="color: #999900; font-weight: bold;">INT</span><span style="color: #000033;">;</span>
&nbsp;
<span style="color: #990099; font-weight: bold;">DECLARE</span> CONTINUE <span style="color: #990099; font-weight: bold;">HANDLER</span> FOR <span style="color: #CC0099; font-weight: bold;">NOT</span> FOUND <span style="color: #990099; font-weight: bold;">SET</span> ExistenciaAnterior <span style="color: #CC0099;">=</span> <span style="color: #008080;">0</span><span style="color: #000033;">;</span>
<span style="color: #990099; font-weight: bold;">SELECT</span> valornuevo <span style="color: #990099; font-weight: bold;">FROM</span> bitacora <span style="color: #990099; font-weight: bold;">WHERE</span> mensaje<span style="color: #CC0099;">=</span>idp <span style="color: #CC0099; font-weight: bold;">AND</span> fecha<span style="color: #CC0099;">&lt;=</span>fechai <span style="color: #CC0099; font-weight: bold;">AND</span> tipo<span style="color: #CC0099;">=</span><span style="color: #000099;">CONCAT</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'UPDATE'</span><span style="color: #000033;">,</span>ida<span style="color: #FF00FF;">&#41;</span>  <span style="color: #990099; font-weight: bold;">ORDER BY</span> idbitacora <span style="color: #990099; font-weight: bold;">DESC</span> <span style="color: #990099; font-weight: bold;">LIMIT</span> <span style="color: #008080;">1</span> <span style="color: #990099; font-weight: bold;">INTO</span> ExistenciaAnterior<span style="color: #000033;">;</span>
<span style="color: #808000; font-style: italic;">/**
**Varios Select contando los movimientos en entradas,salidas,traspasos,ventas,etc...
*/</span>
RETURN <span style="color: #FF00FF;">&#40;</span>ExistenciaAnterior<span style="color: #CC0099;">+</span>Entradas<span style="color: #CC0099;">+</span>TraspasosEntradas<span style="color: #CC0099;">+</span>AjustesInventarioEntrada<span style="color: #FF00FF;">&#41;</span><span style="color: #CC0099;">+</span><span style="color: #FF00FF;">&#40;</span>Salidas<span style="color: #CC0099;">+</span>TraspasosSalida<span style="color: #CC0099;">+</span>Creditos<span style="color: #CC0099;">+</span>Contados<span style="color: #CC0099;">+</span>OrdenCompra<span style="color: #CC0099;">+</span>AjustesInventarioSalida<span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span>
<span style="color: #009900;">END</span> $$
DELIMITER <span style="color: #000033;">;</span></pre></div></div>

<p>Espero este breve tip haya sido de utilidad para quien tenga un problema similar; almenos en mi caso me funciono asi que si no te funciono puede que la causa sea otra diferente a la mía, intenta publicar tu caso en foros especializados donde hay mucha gente como yo dispuesta a ayudarte; te recomiendo www.cristalab.com y www.forosdelweb.com .</p>
</div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jorgelig.com/2010/03/25/error-1329-no-data-zero-rows-fetched-selected-or-processed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quizzpot, escuela de desarrollo web online</title>
		<link>http://www.jorgelig.com/2010/01/12/quizzpot-escuela-de-desarrollo-web-online/</link>
		<comments>http://www.jorgelig.com/2010/01/12/quizzpot-escuela-de-desarrollo-web-online/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 08:30:08 +0000</pubDate>
		<dc:creator>Jorgelig</dc:creator>
				<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[WebTip]]></category>

		<guid isPermaLink="false">http://www.jorgelig.com/?p=732</guid>
		<description><![CDATA[Quizzpot es una escuela online para profesionales o personas aficionadas al desarrollo de software. Impartimos cursos, mediante video, de herramientas novedosas y necesarias para el desarrollo de software y desarrollo web, nuestros cursos estan planeados y desarrollados de la mejor manera posible, además son ofrecidos de forma gratuita.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p><img class="aligncenter size-full wp-image-735" title="Quizzpot" src="http://www.jorgelig.com/wp-content/uploads/2010/01/talleres.jpg" alt="Quizzpot" width="596" height="341" /></p>
<p>Tiene meses que le debo este post al buen <a href="http://www.crysfel.com/">Crysfel (stock)</a> jeje</p>
<p>Así que aquí vamos con una pequeña reseña de este proyecto personal iniciado por Crysfel, que ademas de dejar en claro que tiene mucho tiempo de ocio, también talento XD. Quizzpot como todo nombre de proyecto 2.0 (flickr, google, yahoo, etc.. ) en si mismo no significa nada; es una palabra compuesta: quizz de examen y Spot de lugar.</p>
<p>La idea del proyecto es muy simple, que cualquiera con las suficientes ganas de aprender algo de desarrollo web pueda hacerlo por medio de cursos, vídeos, talleres, exámenes, foro; obviamente iniciando desde un nivel básico hasta tocar temas un poco mas complejos. Ademas, es posible auto evaluar lo aprendido por medio de exámenes y ejercicios.</p>
<p>Si tu nivel es básico te recomiendo entrar y aprender con <a href="http://www.quizzpot.com/courses/">los cursos</a>, aunque si consideras que tu nivel es alto te invito a que compartas ese conocimiento participando en el <a href="http://foro.quizzpot.com/">foro</a> y ayudando a otros que están tal como tu lo estabas al principio <img src='http://www.jorgelig.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Enlace | <a href="http://www.quizzpot.com/">Quizzpot</a></p>
</div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jorgelig.com/2010/01/12/quizzpot-escuela-de-desarrollo-web-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Componente Menu ASPX compatible con Chrome, Safari, Opera e IE8</title>
		<link>http://www.jorgelig.com/2010/01/10/componente-menu-aspx-compatible-con-chrome-safari-opera-e-ie8/</link>
		<comments>http://www.jorgelig.com/2010/01/10/componente-menu-aspx-compatible-con-chrome-safari-opera-e-ie8/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 22:04:22 +0000</pubDate>
		<dc:creator>Jorgelig</dc:creator>
				<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[ASPX]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[Items]]></category>
		<category><![CDATA[Menu]]></category>
		<category><![CDATA[Navegadores]]></category>
		<category><![CDATA[z-index]]></category>

		<guid isPermaLink="false">http://jorgelig.la100rra.com.mx/?p=670</guid>
		<description><![CDATA[Solución al problema del componente Menu aspx, que no se muestran los Items en los navegadores Chrome, Safari, Opera e IE8.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p>Este error se produce debido a un fallo de ASP .NETcon el z-index, y como IE8 ya soluciono ese bug, ahora todo se ve como siempre se debio ver jajaja. Para solucionarlo hay dos opciones:</p>
<p><strong>Primera Opcion</strong><br />
Verificar el cliente navegador en el load del MasterPage en caso que no se cuente con MasterPager en el Load de cada pagina:</p>

<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #8D38C9; font-weight: bold;">if</span> ((Request.UserAgent.IndexOf(<span style="color: #800000;">&quot;AppleWebKit&quot;</span>) &gt; 0 ) || (Request.UserAgent.IndexOf(<span style="color: #800000;">&quot;Unknown&quot;</span>) &gt; 0 ) || ( Request.UserAgent.IndexOf(<span style="color: #800000;">&quot;Chrome&quot;</span>) &gt; 0 ))
            {
                Request.Browser.Adapters.Clear();
            }</pre></div></div>

<p><strong>Segunda opcion</strong><br />
CSS</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*Agregar una clase css*/</span>
<span style="color: #6666ff;">.adjustedZIndex</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>ASPX</p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #006600; font-weight: bold;">&lt;!</span>-- Indicamos que el componente menu utilizara la clase que acabamos de agregar --<span style="color: #006600; font-weight: bold;">&gt;</span>
<span style="color: #006600; font-weight: bold;">&lt;</span>asp<span style="color: #006600; font-weight: bold;">:</span>Menu ID<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;Menu1&quot;</span> runat<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;server&quot;</span><span style="color: #006600; font-weight: bold;">&gt;</span>
    <span style="color: #006600; font-weight: bold;">&lt;</span>DynamicMenuStyle CssClass<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;adjustedZIndex&quot;</span> <span style="color: #006600; font-weight: bold;">/&gt;</span>
<span style="color: #006600; font-weight: bold;">&lt;/</span>asp<span style="color: #006600; font-weight: bold;">:</span>Menu<span style="color: #006600; font-weight: bold;">&gt;</span></pre></div></div>

</div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jorgelig.com/2010/01/10/componente-menu-aspx-compatible-con-chrome-safari-opera-e-ie8/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

