by beto on January 30, 2012
by beto on December 27, 2011
by beto on December 24, 2011
Problema:
El Background (imagen) no ocupa todo el alto de la pantalla.
Background-size no es compatible con todos los navegadores.
Resize Inteligente.
He creado un plugin de jQuery para hacer un resize más inteligente y con un resultado mejor. La imagen no se distorsiona, y se mantiene en todo momento el centro de la imagen.
Smart Background Resize. Click aquí para ver ejemplo, instrucciones y descarga.
Si prefieres usar solo CSS, se distorsionará la imagen pero también ocupará el 100%
usa: background-size: 100% 100%; -moz-background-size: 100% 100%;
by beto on December 23, 2011
Ok, ya tienes tu web funcionando. Hora de mirarlo en todos los navegadores. iPhone.
Problema0 : CSS condicional solo para iphone
Problema con las etiquetas html “p” el tamaño de letra es diferente.
Solución:
@media screen and (max-device-width: 480px){
/* Todo el CSS para iPhone va aqui */
p { -webkit-text-size-adjust: 100%;}
}
La primera línia digamos que hace el css condicional solo para dispositivos de max-width 480;
-webkit-text-size-adjust: Ajusta los textos para que se vean igual que en el navegador.
Feliz_Navidad(2011);
by beto on December 22, 2011
Antes de los Rewrite Rules introduce lo siguiente:
DirectoryIndex index.php Options -MultiViews RewriteBase / RewriteEngine On
by beto on December 10, 2011
by beto on October 20, 2011
Encuentra tu desarrollador Freelance iPhone próximamente en www.iphoneninja.info (en construcción)
Consulting & Desarrollo
Find your iPhone Freelance Developer at www.iphoneninja.info (in the next days) to get iPhone Consulting and Developing.
by beto on October 1, 2011
I am talking about:
Uploading and inserting images using ImageManager (TinyMCE plugin) in 3 clicks, instead of 4 and without search for your uploaded images inside the image file list. Images will be inserted in tinyMCE’s textarea automatically.
Ninja solution:
line 528: imagemanager-path/pages/im/js/imagemanager.js . Look for “onupload : function(){”
onupload : function(e) {
//Imagemanager.listFiles();
if (e.files.length > 0 ){
var s = t.currentWin.getArgs();selectedPaths=[];
$(e.files).each(function(i, v) {
selectedPaths.push(v.path); });
RPC.insertFiles({
relative_urls : s.relative_urls,
document_base_url : s.document_base_url,
default_base_url : s.default_base_url,
no_host : s.remove_script_host || s.no_host,
paths : selectedPaths,
progress_message : $.translate("{#common.image_data}"),
insert_filter : s.insert_filter,
oninsert : function(o) {
if (s.oninsert) {
$(o.files).each(function(i, v) {
t.focusedFile = v; o.focusedFile = v; s.oninsert(o);
});
}
t.currentWin.close();
}
}); // end RPC.exec
} // end if
} // end onupload
Note: function(e){
Paste this code inside your onupload:function(){
That’s it.
Problems of this solution
- It’s not a plugin, so if you update your imagemanger, you will have to make this change again.
- If you don’t allow overwrite files, if you try to upload a file that is allready uploaded, this file won’t be uploaded neither inserted in tinymce’s textarea.
- Not tested on IE, just chrome,safari and firefox.
Two days ago, I would payed for this code. I Hope this will be usefull for you.
by beto on August 29, 2011
Es posible que hayas entrado en tu página web y te hayas encontrado con una gran ventana de advertencia avisandote de que visitar la página puede ser perjudicial para tu equipo. Estás en el sitio adecuado : )
Problema
Aparece ventana de advertencia en tu sitio web, describiendo contenido malicioso. Tu sitio web utiliza WordPress.
Solución
Por supuesto empieza por abrir tu cliente FTP y hacer login para ver los archivos de tu instalación de wordpress.
Antes de nada, te recomiendo usar http://sitecheck.sucuri.net/scanner/ con el que podrás scanear tu sitio en busca de malware. En caso de encontrarlo te dará el archivo exacto donde ha encontrado el problema. Entonces lo más fácil es reparar los archivos infectados reemplazándolos con el archivo original.
Si scanner no te ha hecho el trabajo, vamos a hacerlo manualmente:
- Inspecciona tu wp-confip.php. Es posible que hayana añadido unas 3000 línias en blanco. En algún lugar en el medio de esas 3000 linias está el código malicioso. Bórralo. Si tienes dudas, remplazalo por la versión que viene con la instalación.
- Borra si existen estos archivos: wp-admin/upd.php , wp-content/upd.php
- Vacía, si existen, todas las carpetas temp dentro de wp-admin, wp-content, wp-includes.
- Reemplaza los siguientes archivos por los originales desde un paquete de wordpress: wp-settings.php, wp-includes/js/jquery/jquery.js, wp-includes/js /l10n.js
- Reemplaza el plugin timthumb, si lo tienes, a la última versión.
- Cambia tu password del FTP
- Cambia el password de mysql, y actualiza tu wp-config.php
- Si google te está avisando a tus visitantes del posible malware, entra en el webmaster tools de google para pedir una revisión. En 24h desaparecerá la advertencia.
¡Listo!
No? Con todo esto deberías haber eliminado el malware. Antes de nada aségurate que no hay cachés por enmedio. Si no ha funcionado, espera unos minutos por si hay algún caché. Actualiza tu wordpress a la última versión, y si sigue sin funcionar entonces solo te queda hacer lo que hace mahoma. Ir a la montaña: haz copia de seguridad de tu base de datos, reinstala wordpress, reinstala tu tema y reinstala tu base de datos desde el backup.
EDIT: si el archivo ln10.js es el que te da problemas, reemplazalo por el archivo que viene con el paquete original de wordpress de la misma versión que estés usando.
Si el problema viene del archivo de jquery, seguramente de un plugin o un tema, deshabilita el plugin. Es posible que hayas intentado bajar y reemplazar de nuevo el archivo jquery directamente de jquery o incluso de google, y parezca tener el mismo malware insertado, estoy investigando esta parte, y por lo que parece es el mismo malware el que se reproduce de nuevo aunque reemplazes el archivo. Desactivando el plugin que usa jquery solucionarás el problema temporalmente, pero te quedarás sin jquery en el sitio. Algo que se puede intentar es modificar desde el html la ruta hacia el archivo jquery.js. Es decir tener otro archivo jquery en otra ruta de la instalación de wordpress i aprovecharlo.
by beto on July 24, 2011
Make (or ask for) a really online selling point to make business without changing your physical bussines structure. I like examples like blurb or spreadshirt, because they made a big, international and succesfull bussines converting their offline services into online platform as a web application. They permit you to customize their products (in this case tshirts and books). You can calculate budgets by yourself and you can receive your order where you want. No physical change in the company, but now clients come from everywhere.
You must provide tools to your users.
Why they are coming? Compare products? Calculate budgets? Submit files to you?
Think about software at your service rather than a website talking about how great you are but not offering nothing to do to your visitors.
Make it easy and fun for them, automatic and optimized for you, and you will have an innovative project that with the correct buzz will be used and loved.