Posts

JQuery development and Chrome local files access

If you have been developing a web page using JQuery and trying access some local json file. $.getJSON("your path to the local file", function(data){ //some code }); You might have found out that trying to run your code con Chrome it fails and with little detail on why it isn't working. You may have thought that there is a problem with your code or even with the validation of the json data which is an option also. But before going all crazy reviewing all of the code. Check this: Chrome for security reasons doesn't allow local files to access other local files by default. So if you want your code to work there is a simple fix. Start your Chrome browser using the following parameter: --allow-file-access-from-files and thats it your code should be working now and you should be able to work on your json data. If you are using firefox then you should take a look at this link: http://kb.mozillazine.org/Links_to_local_pages_do_not_work

MongoDB GUI Tool: Rock Mongo

Image
Since we have been working lately with mongo I started looking for tools for administration and management of mongo additional to the CLI client. Looking around I've found this  nice GUI tool for managing MongoDB called RockMongo . If  you don't have php installed you may need to install it and add the mongo plugin for php: #Install PHP yum install php php-devel php-pear #Install the CPP compiler yum install gcc #Install the mongo extension on PHP pecl install mongo Then you need to enable php on your apache server. Edit the httpd.conf file Below the following lines: AddType application/x-compress .Z AddType application/x-gzip .gz .tgz Add: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Then enable the mongo extension. Edit  the php.ini file On section Dynamic Extensions  add the following line: extension=mongo.so Now enable the Apache server to user network connections to the database: setsebool httpd_can_network

A thousand

Image
Thanks! por Anna Cervova

RabbitMQ first reactions

Image
As promised this is the first note about stuff we are working on our current project. Based on the nature of our system an asynchronous type of solution is needed. Having worked previously with some JMS solutions for example SonicMQ the words Messages and Queues was stuck on my mind right away when the project began.  OK, then if you remember my previous post I mentioned this is a "start-up" like project so we have to keep it cheap and OSS is the way to go. As consequence my first impression was hey! HornetQ its SUPER fast! 8.2Million messages per second. Lets try that!  So my colleague starts doing the first tests and after a while we begin realizing that its maybe too big of a rocket to shoot a fly and not so friendly to start with. Meanwhile I immerse myself in pages blogs and forums and the term Advanced Message Queuing Protocol (AMQP) pokes on my eyes together with RabbitMQ  which looks like the cool new kid on the messaging industry. So I do a few tests and wi

Tip of the day: Clearing the print queue on Win7

On this link  you can find these instructions to clean your hanged up printer queue on Windows 7 and Vista: 1. Click  Start . 2. Type  Command . 3. Right-click  Command Prompt and select  Run as administrator . 4. Type  net stop spooler  then press  Enter . 5. Type  del %systemroot%\System32\spool\printers\* /Q  then press  Enter . 6.  Type  net start spooler  then press  Enter . Thanks man! you solved a really annoying problem that has been with us for a few years already

Start-up

After quite a few busy weeks I'm finally back to the blog. The reason for such absence was the change to a new job. And meant a more profound change than just switching jobs and let me explain what I mean with this by listing what has changed: From following to leading From guidelines to freeform From legacy to state-of-the-art From the consultancy world to the entrepreneur world And the last one pretty much sums it up... I recently left the consultancy world to join a "backed-up" start-up company on a moment where many may think it was a very risky moment to do so. Leaving from a established consultancy company to recently created one doesn't seem like something most people would do on times of financial crisis but to me it was worth the risk by believing that crisis times are those times where opportunities open to those few people who take it. It gives you the opportunity to reinvent yourself and to do something new or something better and to fill tha

One step closer

Image
If you have been following my blog you might have noticed my interest in the technology surrounding today's Web. I would suggest you to read  this  then  this  and finally  this  so you can have an idea of what my point of view is and how it have evolved on this subject. I would like to quote myself on the first one posted around 2005: In my vision of what future may be the OS and the Internet will be fused together so everything we will have to care about its what browser to use, because every tool, program, game will be hosted in the Internet. So all we will need its a great broadband connection and a good browser/OS to link us to all that.  Some call it Web 2.0 but to me its going an step further. Specially after recent announcement of Amazon's Kindle Fire and even more with its companion Amazon Silk browser which in few words is a split-architecture part device part cloud powered browser. Sounds familiar right? You might want to take a look at this video posted on th

Solr vs Elasticsearch

Having participated in projects where Solr is the component chosen as a search engine I've found myself most of the times annoyed about the lack of realtime indexing and performance degradation as indexes grow. Solr works great on environments where indexes aren't generated with much frequency but as the web evolves and new contents are generated on a continuous way the demand of indexing+querying simultaneously grows. The following article shows elasticsearch as one alternative to this scenario:  Realtime Search: Solr vs Elasticsearch

CEP, BPM and SOA working together

If you want to know how combining the virtues of complex event processing, business process management and the service oriented architecture could work together you should take a look on  this  entry " How does CEP fit into BPM and SOA environments? "  of the TIBCO  Complex Event Processing blog .