Marco Ortega

Mi vida

Subscribe to RSS feed

Zoneminder won't start

, , ,

We had a power failure and the ZoneMinder server was improperly shut down. That made it imposible to restart due to a corrupt mysql file.

When trying to start zoneminder server using the following command:

sudo /etc/init.d/zoneminder start

I was getting the following error:

Incorrect key file for table './zm/Logs.MYI'; try...

The solution to this was to run the following commands:

mysql -u zmuser -p
zmpass
USE zm;
REPAIR TABLE Logs.MYI;
ctrl+c
sudo /etc/init.d/zoneminder start

And it worked.

Petróleo, Luz y Comunicaciones

Ahora que TELMEX es empresa privada, el servicio al cliente es mejor e internamente a los empleados poco a poco se les exige más, siendo el sindicato uno de los factores que evita la explotación de los trabajadores y aunque sea corrupto, existe esa fuerza que evita que la balanza se cargue hacia un solo lado. Además la competencia provoca que los precios no suban tanto. En la luz, se ha mejorado el servicio, no es privada, sigue siendo del gobierno pero se ha renovado y el servicio también. Si las intenciones de algún grupo de élite es privatizar PEMEX mínimo los empleados no deberían seguirles el juego y mucho menos darles motivos para que esto ocurra, mejorar la calidad del servicio y hacer bien el trabajo que corresponde a cada quién sin necesidad de que se privatice es decisión de los mismos trabajadores. Al igual que el IMSS. Una institución será fuerte y defendible de acuerdo a sus mismos trabajadores, también tienen que poner de su parte. Así que una de las mejores formas de combatir la privatización es mejorando la calidad del servicio y la mentalidad de los propios trabajadores. Sería ideal que se extendiera a todas las instancias de gobierno, es cuestión de mentalidad. No solo son los gobernantes y políticos los que tienen que cambiar.

Transparent image using WideImage php library

An easy way to create a transparent background image to start with (instead of the black one) is easily accomplished using the following code:

$mainImage = WideImage::createTrueColorImage ( '200', '200' );
$mainImage = $mainImage->applyMask($mainImage,0,0);

Error al enviar solicitud de devolución en el portal del SAT

Al intentar enviar la solicitud de devolución en el portal del SAT me marca un error al intentar invocar el servicio: psRegistroSolicitudTotalDevolucion

Alguien más tiene el mismo problema?

El error es el siguiente:

Servicio no disponible.Error: Error invoking service - psRegistroSolicitudTotalDevolucion - SOAP Fault [code: COMCOMPROSER3 reason: <NS1:STIIException xmlns:NS1="http://sat.gob.mx/ModeloComun"><respuestaClave>COMCOMPROSER3</respuestaClave><ArrayOfEstatusExcepcion><EstatusExcepcion><ParamIdenCorrelacion>1326150494324</ParamIdenCorrelacion><ParamIdenTorre>STII</ParamIdenTorre><ParamIdenSubTorre>DYC</ParamIdenSubTorre><ParamNomServicio>DevolComp_Servicios_Tarea_RegistroSolicitudTotal</ParamNomServicio><ParamIdenNivelSeveridad>30</ParamIdenNivelSeveridad><ParamDescNivelSeveridad>-</ParamDescNivelSeveridad><ParamIdenAplicacion>WPS</ParamIdenAplicacion><ParamDescAplicacion>-</ParamDescAplicacion><ParamIdenCategoria>02</ParamIdenCategoria><ParamDescCategoria>-</ParamDescCategoria><ParamIdenExcepcion>-</ParamIdenExcepcion><ParamDescExcepcion>-</ParamDescExcepcion><ParamDatosAdicionales>com.ibm.websphere.sca.ServiceRuntimeException: <NS1:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope/"><NS1:Fault><faultcode>soapenv:Server</faultcode><faultstring>STIIException</faultstring><detail encodingStyle=""><NS2:STIIException xmlns:NS2="http://sat.gob.mx/ModeloComun"><respuestaClave>DYCCOMCOM1</respuestaClave><ArrayOfEstatusExcepcion><EstatusExcepcion><ParamIdenCorrelacion>1326150494249</ParamIdenCorrelacion><ParamIdenTorre>STII</ParamIdenTorre><ParamIdenSubTorre>DYC</ParamIdenSubTorre><ParamNomServicio>mx.gob.sat.sios.dyc.servicio.entidad.impl.SolicitudDevolucionServicioImpl:guardarSolicitudDevolucion</ParamNomServicio><ParamIdenNivelSeveridad>30</ParamIdenNivelSeveridad><ParamDescNivelSeveridad>30</ParamDescNivelSeveridad><ParamIdenAplicacion>WAS</ParamIdenAplicacion><ParamDescAplicacion>STII_DevolComp_Servicios_Entidad</ParamDescAplicacion><ParamIdenCategoria>04</ParamIdenCategoria><ParamDescCategoria>Error</ParamDescCategoria><ParamIdenExcepcion>class java.lang.Throwable</ParamIdenExcepcion><ParamDescExcepcion>null:null</ParamDescExcepcion><ParamDatosAdicionales>Error en SolicitudDevolucionServicio.guardarSolicitudDevolucion</ParamDatosAdicionales></EstatusExcepcion></ArrayOfEstatusExcepcion></NS2:STIIException></detail></NS1:Fault></NS1:Body> at com.ibm.wsspi.sca.webservice.jaxrpc.ServiceImportHandler.handleFault(ServiceImportHandler.java:261) at
Have you ever wonder how to open images from url on mac osx lion using photoshop?
It's simple. With photoshop opened, just drag the image from your safari browser to the photoshop app, and voilá.
No need to copy/paste the url into an "open from url" or "open location" dialog box.

Image resizing can even be done with "Preview" app.
http://www.macyourself.com/2010/01/25/batch-resize-images-with-preview-in-mac-os-x-10-5-and-10-6/

$REE rebound

I expect to see a major rebound on $REE soon. A new rally up to 17.98 is near.
So $MCP is a strong company I agree, but $REE has no debt and has a lot of potential. I'm going long with $REE.
I received the 4.5 per share special dividend (-10% tax) and the very same day when the market opened the $OXPS started -5 dollars from the previous closing day, now I have a non realized loss of 750 dollars (the dividend payout was $570.00 !). So I should wait about three moths for the stock to go up again... Lesson learned, avoid buying stocks with special dividends near the ex-div date.

Fast WebDevelopment

Recently I've been asked what would be the best way to develop web oriented software fast, they asked me if ZendFramework wold do, if it already has a template engine, if it would be possible to create "skins" for the sites and if it has Ajax support. Here is the answer: -ZendFramework does not have a template engine (you can use smarty, tbs or others), you will have to design and build your software to use them. -ZendFramework has a lot of libraries that could make your development/maintenance process easier and faster, the implementation of an MVC model depends on you as well as the architecture of your software. -If you want to have a skinable software (though css), you only have to follow some rules to achieve that: -Avoid inline styiling -Create a base css -Create a default (skin) css -On your code allow changing the css include based on a variable (this will allow you to change the "skin"). -And as a recommendation, if you want your "skins" to look the same on all browsers, use Blueprint CSS framework (it will save you a lot of time and headaches trying to make it look the same on IE too). -About template engines, I have only used TBS and Smarty, I prefer TBS over Smarty because TBS allows you to create cleaner templates and it's notation does not interfere with javascript since it uses braces instead of curly braces, also you can use blocks to define a repeating set of data (as a database resultset) without the need (as in Smarty) to write a loop on the view. So take a look at http://www.tinybutstrong.com and read the examples, then try to write your own tests and play around, I'm sure you will be able to handle it in less than 1 hour, it's very easy to use and to understand. -Use jQuery and it's plug-ins, always check if there is a plug-in that already does what you are looking for, there are thounsands of them, if you are using ZendFramework, consider using Dojo since it has been supported some time sooner than jQuery, but if you already has experience and feel comfortable with jQuery, no problem with ZendFramework, as of version 1.7 it integrates jQuery. I recommend using Dojo since it has a very nice client/server form validation model without the need of extra plug-ins as jQuery does. -About a menu tool, well I haven't used one, my projects requirements hasn't needed something too advanced. So a normal styled
    has been enough, but I should take a look at some tools, probably there is something cool and fast, I'll research that once I get some time. Hope this has been useful to you.

HTML5, CSS3 and SVG are here!

Even though HTML5 spec is under development already, top browsers like: Safari, Opera, Chrome and FireFox have added support to most of the HTML5 specs!

If I take a look into the google Analytics of my sites, it's too sad to know that more than 80% of the users hitting my pages still uses InternetExplorer!

I believe it will be hard to beat the old MS IE browser just because most of the computers that has been and are being sold have Windows pre-installed sad and so MS IE browser is pre-installed with it.

Most Windows users do not install a new browser.

The new HTML5 spec, has the video and audio tags. I don't care if they take time to decide which format to adopt, I already am using ogg and m4a encoded files, so that's really cool. The pages load faster without the need of a plug-in like Flash. I know 90% of PCs have Flash installed, but it does not work on the iPhone or the iPad.

So I'm waiting for MS to decide which format will he adopt. I hope it does not take them too long... at least not a hole year! Probably they would like to use SilverLight for video and audio, who knows!

Hopefully, Apple and Microsoft will realize that opensource formats are good for everyone. At the end of the day they could sell tools to improve the workflow (video editing software for example) or even end user solutions like google apps.

Apple should realize that if they adopt an opensource unpatented format they will still be selling a lot of iPads, iPods, iPhones and Macs. They should not try to make a propietary format a standard. The iTunes store will still be selling millions of apps every day.

Eventhough the iPhone, iPods and iPads can be jailbroken, the iTunes store still has a lot of profit, I myself has bought Apple products because I like them.

So let's promote the use of opensource for new standards, and let the end-user to choose to go for a free solution or pay for the other one.
May 2013
M T W T F S S
April 2013June 2013
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31