<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4690534361273837218</id><updated>2025-12-16T21:08:26.094+01:00</updated><category term="iphone"/><category term="iphone development"/><category term="development"/><category term="laravel"/><category term="linux"/><category term="java"/><category term="php"/><category term="mac"/><category term="raspberry pi"/><category term="ubuntu"/><category term="laravel 5"/><category term="r"/><category term="raspberry"/><category term="shell script"/><category term=".net"/><category term="c#"/><category term="javascript"/><category term="json"/><category term="linux cron"/><category term="mac os"/><category term="memory"/><category term="mysql"/><category term="openssl"/><category term="phpmyadmin"/><category term="usb"/><category term="visual studio"/><category term="1and1"/><category term="2 factor"/><category term="CVE-2014-0160"/><category term="HtmlServiceProvider"/><category term="MPMoviePlayerController"/><category term="MediaPlayer"/><category term="aes"/><category term="angularjs"/><category term="apache"/><category term="authentication"/><category term="aws"/><category term="bash"/><category term="best package"/><category term="bindShared"/><category term="bug"/><category term="byte"/><category term="c++"/><category term="c++ development"/><category term="canvas"/><category term="capistrano"/><category term="capitan"/><category term="cars"/><category term="cbc"/><category term="centos"/><category term="chrome"/><category term="command"/><category term="command line"/><category term="config"/><category term="confluent"/><category term="connect"/><category term="connections"/><category term="console"/><category term="constants"/><category term="dictionary"/><category term="el capitan"/><category term="eval"/><category term="form"/><category term="ghostview"/><category term="github"/><category term="heartbleed"/><category term="hex"/><category term="html"/><category term="http"/><category term="illuminate"/><category term="inetaddress"/><category term="internal ip"/><category term="ipad"/><category term="iptables"/><category term="kafka"/><category term="key"/><category term="lamp"/><category term="laravel 5.3"/><category term="libhttpclient"/><category term="libjson"/><category term="libjson-simple"/><category term="library"/><category term="librdkafka"/><category term="librxtx"/><category term="librxtx-java"/><category term="mac os x"/><category term="mail"/><category term="mountain lion"/><category term="multiple connections"/><category term="multiple db connections"/><category term="multiple schemas"/><category term="normalization"/><category term="objective-c"/><category term="oracle"/><category term="os"/><category term="os x"/><category term="osx"/><category term="package"/><category term="pdftk"/><category term="php linux imagemagick mamp"/><category term="post"/><category term="postgresql"/><category term="printing"/><category term="python"/><category term="python-serial"/><category term="rails"/><category term="rpart"/><category term="rstudio"/><category term="ruby"/><category term="rxtx"/><category term="s3"/><category term="schema"/><category term="security"/><category term="serial"/><category term="shared"/><category term="shared hosting"/><category term="sos"/><category term="ssh"/><category term="storage"/><category term="terminal"/><category term="timestamp"/><category term="two-factor"/><category term="udev"/><category term="udevadm"/><category term="uiwebview"/><category term="vagrant"/><category term="vector"/><category term="vulnerability"/><category term="yosemite"/><title type='text'>TeXnological. Technology and Data Science</title><subtitle type='html'>Notes about programming on iPhone, iPad, C#, PHP, data science and other things.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>80</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-5278130722437745459</id><published>2019-09-02T21:08:00.002+02:00</published><updated>2019-09-02T21:08:31.116+02:00</updated><title type='text'>How to use git to connect to Github and Gitlab on the same machine</title><summary type="text">
Well, easy problem to solve.

Just edit/create the SSH config file ~/.ssh/config and add the two providers

Host github
HostName github.com 
IdentityFile ~/.ssh/github

Host gitlab
HostName gilab.com 
IdentityFile ~/.ssh/gitlab
changing/defining your SSH keys for each provider.

Go to Github config area and Gitlab config area and add your PUBLIC key (normally something like id_rsa.pub) to the </summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/5278130722437745459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2019/09/how-to-use-git-to-connect-to-github-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/5278130722437745459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/5278130722437745459'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2019/09/how-to-use-git-to-connect-to-github-and.html' title='How to use git to connect to Github and Gitlab on the same machine'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-8841242763473412360</id><published>2019-08-31T21:13:00.001+02:00</published><updated>2019-08-31T21:13:57.768+02:00</updated><title type='text'>Setting up PostgreSQL DB with Java Spring Boot and Gradle</title><summary type="text">
Let&#39;s start checking the dependencies, considering that I am using for this example spring boot 2.1.7.

Go to your build.gradle file and in the section dependencies be sure that you have the following:


compile &#39;org.springframework.boot:spring-boot-starter-jdbc&#39;
compile &#39;org.postgresql:postgresql:42.2.2&#39;

If you still don&#39;t have the resources.config.application.yml file, create it or edit it </summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/8841242763473412360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2019/08/setting-up-postgresql-db-with-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/8841242763473412360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/8841242763473412360'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2019/08/setting-up-postgresql-db-with-java.html' title='Setting up PostgreSQL DB with Java Spring Boot and Gradle'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-4067208803189724502</id><published>2017-03-08T11:23:00.002+01:00</published><updated>2017-03-08T11:24:22.177+01:00</updated><title type='text'>Setting up Strict Transport Security (HSTS) in NGINX under a Vagrant Box</title><summary type="text">
Today we I going to show how to set up HTTP Strict Transport Security (HSTS) in NGINX to improve slightly the security of your webapp.

HTTPS (HTTP encrypted with SSL or TLS) makes very difficult for an attacker to intercept, modify, or fake traffic between a user and the website. HSTS seeks to deal with potential vulnerabilities by instructing the browser that a domain can only be accessed </summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/4067208803189724502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2017/03/setting-up-strict-transport-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/4067208803189724502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/4067208803189724502'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2017/03/setting-up-strict-transport-security.html' title='Setting up Strict Transport Security (HSTS) in NGINX under a Vagrant Box'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-2226290807079717637</id><published>2016-09-29T16:05:00.000+02:00</published><updated>2016-09-29T16:06:40.075+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="confluent"/><category scheme="http://www.blogger.com/atom/ns#" term="kafka"/><category scheme="http://www.blogger.com/atom/ns#" term="librdkafka"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Setting up PHP-Kafka using librdkafka wrapper phpkafka from EVODelavega under Ubuntu.</title><summary type="text">
We will install kafka for PHP based on the libraries:

https://github.com/EVODelavega/phpkafka
https://github.com/edenhill/librdkafka

Setting up
==========
Fast way (Only Ubuntu)
--------

$ sudo apt-get install librdkafka1

Dependencies
------------
First let install some dependencies (installing manually)

$ sudo apt-get install libsasl2-dev liblz4-dev 

Installing php-rdkafka (Other OS)
----</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/2226290807079717637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2016/09/setting-up-php-kafka-using-librdkafka.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/2226290807079717637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/2226290807079717637'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2016/09/setting-up-php-kafka-using-librdkafka.html' title='Setting up PHP-Kafka using librdkafka wrapper phpkafka from EVODelavega under Ubuntu.'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-6198247069865945700</id><published>2016-09-04T13:35:00.002+02:00</published><updated>2016-09-04T13:43:30.873+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="1and1"/><category scheme="http://www.blogger.com/atom/ns#" term="laravel"/><category scheme="http://www.blogger.com/atom/ns#" term="laravel 5"/><category scheme="http://www.blogger.com/atom/ns#" term="laravel 5.3"/><category scheme="http://www.blogger.com/atom/ns#" term="shared"/><category scheme="http://www.blogger.com/atom/ns#" term="shared hosting"/><title type='text'>How to run Laravel 5.3 in a 1and1 shared hosting</title><summary type="text">




How to run Laravel 5.3 in a 1and1 shared hosting

1.- Go to your Control Panel and set the default PHP version to 5.6 for your current domain.

2.- Artisan script

Open artisan file and replace the first line to:

#!/usr/local/bin/php5.5

which corresponds to the 1and1 php5.5 path. Now you can run artisan using ./artisan.

3.- composer.json

Open composer.json file and replace all the php </summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/6198247069865945700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2016/09/how-to-run-laravel-53-in-1and1-shared_4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/6198247069865945700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/6198247069865945700'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2016/09/how-to-run-laravel-53-in-1and1-shared_4.html' title='How to run Laravel 5.3 in a 1and1 shared hosting'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvrYxeQcwPg5ZyQmQlB3S1VFPxx9RU7slD7S3WOOhHB634tdHQ7j9rdnETLwEj2mE2lYlVzGVKRqHOYrSlNjqZeMspkI1Ip_Hi3AY42lhiXL0D7mqqnEU-wy-fgbUjpkYwmQUaViWrEw/s72-c/laravel_1and1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-2603360840406444806</id><published>2016-08-03T16:59:00.002+02:00</published><updated>2016-08-03T17:01:03.229+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="aws"/><category scheme="http://www.blogger.com/atom/ns#" term="laravel"/><category scheme="http://www.blogger.com/atom/ns#" term="s3"/><category scheme="http://www.blogger.com/atom/ns#" term="storage"/><title type='text'>How to download a file grom S3 with Laravel</title><summary type="text">
Today let&#39;s explain how to download a file from S3 using laravel. Next time I will explain how to upload the file.

1) Set up the bucket name. Ex. YOUR_BUCKET_NAME

2) Set up the bucket policy

{
&amp;nbsp; &quot;Id&quot;: &quot;PolicyXXXXXX&quot;,
&amp;nbsp; &quot;Version&quot;: &quot;2012-10-17&quot;,
&amp;nbsp; &quot;Statement&quot;: [
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;Sid&quot;: &quot;XXXXXX&quot;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;Action&quot;: [
&amp;nbsp;&amp;</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/2603360840406444806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2016/08/how-to-download-file-grom-s3-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/2603360840406444806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/2603360840406444806'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2016/08/how-to-download-file-grom-s3-with.html' title='How to download a file grom S3 with Laravel'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-2633067757965767961</id><published>2016-03-01T15:12:00.000+01:00</published><updated>2016-03-01T15:46:34.202+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="capistrano"/><category scheme="http://www.blogger.com/atom/ns#" term="laravel"/><category scheme="http://www.blogger.com/atom/ns#" term="laravel 5"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Setting up Capistrano for Laravel 5 in Ubuntu</title><summary type="text">

Capistrano for Laravel 5 in Ubuntu

Install Capistrano in Ubuntu

gem install capistrano


SSH access
Capistrano deploys using SSH. Thus, you must be able to SSH from the deployment system to the destination system for Capistrano to work. You can test the SSH connection using a ssh client, e.g.


ssh&amp;nbsp;your_username@destinationserver


If you cannot connect, in order to be able to do this </summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/2633067757965767961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2016/03/setting-up-capistrano-for-laravel-5-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/2633067757965767961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/2633067757965767961'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2016/03/setting-up-capistrano-for-laravel-5-in.html' title='Setting up Capistrano for Laravel 5 in Ubuntu'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-5864581271998711744</id><published>2016-02-29T17:46:00.001+01:00</published><updated>2016-02-29T17:47:31.079+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="angularjs"/><category scheme="http://www.blogger.com/atom/ns#" term="config"/><category scheme="http://www.blogger.com/atom/ns#" term="constants"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>Rustic way to import your AngularJS configuration from an external JS file</title><summary type="text">
Many times we want to store our constants/config details into a different file to simplify the deployment process or simply to organise the code.

Here you can see a very basic way to save your app&#39;s config file into a different location.

https://jsfiddle.net/sergioloppe/bvajr7bw/

The code is self-explanatory.

Hope helps





</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/5864581271998711744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2016/02/rustic-way-to-import-your-angularjs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/5864581271998711744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/5864581271998711744'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2016/02/rustic-way-to-import-your-angularjs.html' title='Rustic way to import your AngularJS configuration from an external JS file'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-6138244667220069746</id><published>2016-02-12T15:11:00.002+01:00</published><updated>2016-02-12T15:11:09.350+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eval"/><category scheme="http://www.blogger.com/atom/ns#" term="laravel"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>How to avoid errors using the function eval in php (under any framework)</title><summary type="text">
Sometimes when you have to evaluate some mathematical expressions with eval it is difficult to control the errors even using try-catch. Here you have a trick to solve that problem:


$calculation = &#39;1/0&#39;;

$result = @eval($calculation . &quot;; return true;&quot;);
if($result) {
 $rule2_val = doubleval(@eval($calculation)); 
}
else {
 return &#39;Impossible to perform the calculation&#39;;
}



Hope helps!





</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/6138244667220069746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2016/02/how-to-avoid-errors-using-function-eval.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/6138244667220069746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/6138244667220069746'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2016/02/how-to-avoid-errors-using-function-eval.html' title='How to avoid errors using the function eval in php (under any framework)'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-5244895287210371728</id><published>2016-01-24T13:44:00.001+01:00</published><updated>2016-01-24T13:44:45.944+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bindShared"/><category scheme="http://www.blogger.com/atom/ns#" term="form"/><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="HtmlServiceProvider"/><category scheme="http://www.blogger.com/atom/ns#" term="illuminate"/><category scheme="http://www.blogger.com/atom/ns#" term="laravel"/><title type='text'>Using Illuminate/Html in Laravel 5.2</title><summary type="text">

As you know, long time ago, Illuminate/Html was remove from laravel because it is not a core feature. Today I need to use Form for one of my projects and I am going to show how to include in Laravel 5.2. (I prefer not to use Form but you never know).

1) Add to composer.json

&quot;illuminate/html&quot;: &quot;5.*&quot;

2) Update your project

composer update

3) Edit the file config/app.php and add to providers
</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/5244895287210371728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2016/01/using-illuminatehtml-in-laravel-52.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/5244895287210371728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/5244895287210371728'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2016/01/using-illuminatehtml-in-laravel-52.html' title='Using Illuminate/Html in Laravel 5.2'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-7330108588432313728</id><published>2016-01-13T13:43:00.001+01:00</published><updated>2016-01-13T13:43:36.366+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2 factor"/><category scheme="http://www.blogger.com/atom/ns#" term="authentication"/><category scheme="http://www.blogger.com/atom/ns#" term="command"/><category scheme="http://www.blogger.com/atom/ns#" term="command line"/><category scheme="http://www.blogger.com/atom/ns#" term="github"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="two-factor"/><title type='text'>Github Two-Factor Authentication on the command line</title><summary type="text">

Today is the day to deploy things and... also the day to set up the Github&#39;s two-factor authentication on the command line. In order to be able to work with your repositories once you set up your w-factor authentication follow the next steps:

Log into your Github account and go to Settings
Select the &quot;Personal Access Tokens&quot; tab on the left-hand navigation
Click on &quot;Generate new&quot; personal </summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/7330108588432313728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2016/01/github-two-factor-authentication-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/7330108588432313728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/7330108588432313728'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2016/01/github-two-factor-authentication-on.html' title='Github Two-Factor Authentication on the command line'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-1379655381734141635</id><published>2016-01-03T18:04:00.000+01:00</published><updated>2016-01-05T17:03:30.815+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="capitan"/><category scheme="http://www.blogger.com/atom/ns#" term="el capitan"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="os"/><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="vagrant"/><category scheme="http://www.blogger.com/atom/ns#" term="yosemite"/><title type='text'>Installing Ruby on Rails in a Ubuntu/trusty64 Vagrant Box under OS El Capitan</title><summary type="text">
To install Ruby on Rails in a Ubuntu Vagrant Box in a Mac follow the steps below:

1) Download and install vagrant and virtualbox
&amp;nbsp; - http://www.vagrantup.com/downloads
&amp;nbsp; - https://www.virtualbox.org/wiki/Downloads

2) Install the Ubuntu box
# vagrant init ubuntu/trusty64

4) Set up the forwarding

# vi Vagrantfile

Add the line in the forwarded port mapping

config.vm.network &quot;</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/1379655381734141635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2016/01/installing-ruby-on-rails-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/1379655381734141635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/1379655381734141635'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2016/01/installing-ruby-on-rails-in.html' title='Installing Ruby on Rails in a Ubuntu/trusty64 Vagrant Box under OS El Capitan'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-4175457462471465477</id><published>2015-12-11T14:09:00.000+01:00</published><updated>2015-12-11T14:10:20.146+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="shell script"/><category scheme="http://www.blogger.com/atom/ns#" term="timestamp"/><title type='text'>How to add a timestamp to your log files in your bash scripts in Linux</title><summary type="text">

Today I show how to add a timestamp to your log files in your bash scripts. That is easy. In this solution we have to include the function


adddate() {
&amp;nbsp; &amp;nbsp; while IFS= read -r line; do
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;$(date) $line&quot;
&amp;nbsp; &amp;nbsp; done
}

in your script file and add pipe the command to the function using the systax:


command | adddate

For example:


#!/bin/bash
</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/4175457462471465477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2015/12/how-to-add-timestamp-to-your-log-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/4175457462471465477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/4175457462471465477'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2015/12/how-to-add-timestamp-to-your-log-files.html' title='How to add a timestamp to your log files in your bash scripts in Linux'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-5690588055945582719</id><published>2015-08-21T16:33:00.000+02:00</published><updated>2015-08-21T16:33:17.548+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="connect"/><category scheme="http://www.blogger.com/atom/ns#" term="connections"/><category scheme="http://www.blogger.com/atom/ns#" term="laravel"/><category scheme="http://www.blogger.com/atom/ns#" term="laravel 5"/><category scheme="http://www.blogger.com/atom/ns#" term="multiple connections"/><category scheme="http://www.blogger.com/atom/ns#" term="multiple db connections"/><category scheme="http://www.blogger.com/atom/ns#" term="multiple schemas"/><category scheme="http://www.blogger.com/atom/ns#" term="postgresql"/><category scheme="http://www.blogger.com/atom/ns#" term="schema"/><title type='text'>Multiple DB Connections in Laravel 5. How to connect to a different Schema in Postgresql</title><summary type="text">

What happens if you are using Laravel and PostgrSQL and you have to connect to multiple schemas. This post shows how to solve this problem easily in a few steps:



1) Create a new connection in the file app/config/database.php. For example the &quot;test&quot; connection linked to the &quot;your_schema&quot; schema.

 ...
 
 &#39;connections&#39; =&amp;gt; [

  ...
  
  &#39;test&#39; =&amp;gt; [
   &#39;driver&#39; &amp;nbsp; =&amp;gt; &#39;pgsql&#39;,
   &#39;</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/5690588055945582719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2015/08/multiple-db-connections-in-laravel-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/5690588055945582719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/5690588055945582719'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2015/08/multiple-db-connections-in-laravel-5.html' title='Multiple DB Connections in Laravel 5. How to connect to a different Schema in Postgresql'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-4063475313286564388</id><published>2015-06-15T20:52:00.003+02:00</published><updated>2015-06-15T20:53:14.845+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="best package"/><category scheme="http://www.blogger.com/atom/ns#" term="package"/><category scheme="http://www.blogger.com/atom/ns#" term="r"/><category scheme="http://www.blogger.com/atom/ns#" term="sos"/><title type='text'>Searching for packages in R. What is the best package to analyse my data?</title><summary type="text">

Many times we want to apply some method or we need an algorithm but we don&#39;t have the time to implemented or simply we don&#39;t know how to do it. For this situations is good to know how to look for the best or more standardized packages that R offered.

Here is my trick.



Install the package &quot;sos&quot;
Use the function findFn to find the related packages to a given topic.


Let&#39;s first install the </summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/4063475313286564388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2015/06/searching-for-packages-in-r-what-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/4063475313286564388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/4063475313286564388'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2015/06/searching-for-packages-in-r-what-is.html' title='Searching for packages in R. What is the best package to analyse my data?'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbDO6RNwYa8VmDI8fTWh351hpVAp6bElMbujiTvoqJYchknhfTVBaaTWCJ8WPDEeK10naXn48VdudZmvO1efRKYvLgknhOuYgQJb4X_Z7rtNAas3bENv2s4we6A0UJVsIbstEIllEmGQ/s72-c/findFunction.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-3281277388309195105</id><published>2015-06-15T14:34:00.001+02:00</published><updated>2015-06-15T14:47:52.317+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cars"/><category scheme="http://www.blogger.com/atom/ns#" term="dictionary"/><category scheme="http://www.blogger.com/atom/ns#" term="key"/><category scheme="http://www.blogger.com/atom/ns#" term="r"/><category scheme="http://www.blogger.com/atom/ns#" term="rpart"/><category scheme="http://www.blogger.com/atom/ns#" term="rstudio"/><category scheme="http://www.blogger.com/atom/ns#" term="vector"/><title type='text'>Two-Vector Dictionary in R using &quot;match&quot;</title><summary type="text">

Something common in R is to have two vectors representing a key-value dictionary, for example:



Car name
Car price




Let&#39;s see an example:




We created two vectors using the dataset &quot;car.test.frame&quot; included in the package rpart. The first vector contains the name of the cars (key) and the second vector the list of prices (value). The function &quot;match&quot; is used to look for a couple of cars </summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/3281277388309195105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2015/06/two-vector-dictionary-in-r-using-match.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/3281277388309195105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/3281277388309195105'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2015/06/two-vector-dictionary-in-r-using-match.html' title='Two-Vector Dictionary in R using &quot;match&quot;'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjakGQqSdisQS5CjygjudT9obh_xqUdUXdZ6gEDItMEQfDGVGdl8I9KmGUXckaSWBODVEAvTSCpGXtEEext28gJcNFWmmGHLrRCpHtZd0AvBYddpCIiB54DgNzGsCDftBaiOVOID9JO3Q/s72-c/match.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-6462992918709645423</id><published>2015-06-09T10:28:00.003+02:00</published><updated>2015-06-09T10:30:20.435+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bug"/><category scheme="http://www.blogger.com/atom/ns#" term="canvas"/><category scheme="http://www.blogger.com/atom/ns#" term="chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="printing"/><title type='text'>Problems printing graphical contents / canvas in lastest version of Chrome.</title><summary type="text">

In the last release of Chrome something was wrong printing canvas contents. To see the problem visit the website:

https://developers.google.com/maps/documentation/javascript/examples/circle-simple


Do you see the circles on the map?
Print the page
Observe the differents with the printing version. Do you see the circles?&amp;nbsp;


If the answer is not, this post solves your problem.


We can </summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/6462992918709645423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2015/06/problems-printing-graphical-contents.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/6462992918709645423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/6462992918709645423'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2015/06/problems-printing-graphical-contents.html' title='Problems printing graphical contents / canvas in lastest version of Chrome.'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-r1D_sKft2jQloknULqcSGQcVic-hyL0PjkKJrEa7vM9gaourSTtTaZOOKTl58g4mGhryiU8GYIQY7Jx_7q4q_63XPGyK035W4t_0z3Y71UVI4YW_ErKM2CJhM6UUwv1_xXYQ2sMs_w/s72-c/2d-canvas.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-9208566487314472441</id><published>2015-02-11T17:02:00.002+01:00</published><updated>2015-02-11T17:02:20.635+01:00</updated><title type='text'>How to speed up your site with htaccess</title><summary type="text">

Loading speed is a common problem considering that your website is downloading again and &amp;nbsp;again the same files (css, js, png,...).

Let&#39;s load a couple of modules:


mod_expires
mod_header


The idea is to use the max-age header parameter which lets us says &quot;this file expires 1 week from today&quot;, which is simpler than setting an explicit date. The max-age is measured in seconds, ie. 1 day =</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/9208566487314472441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2015/02/how-to-speed-up-your-site-with-htaccess.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/9208566487314472441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/9208566487314472441'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2015/02/how-to-speed-up-your-site-with-htaccess.html' title='How to speed up your site with htaccess'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-3800437166357047832</id><published>2014-10-27T22:27:00.000+01:00</published><updated>2014-10-27T22:27:24.322+01:00</updated><title type='text'>Port tunneling on Mac with SSH</title><summary type="text">

Imagine you need to connect from your browser to another computer which has access to an specific service, por example a private control panel. How to do it using SSH on a mac?

Well, lets describe the problem: 




I want to access to the Service 192.168.300.12:11801 which can be accesed only from the Server SSH 192.168.200.1. To increase the complexity of the problem, we should use HTTPS to </summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/3800437166357047832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2014/10/port-tunneling-on-mac-with-ssh.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/3800437166357047832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/3800437166357047832'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2014/10/port-tunneling-on-mac-with-ssh.html' title='Port tunneling on Mac with SSH'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx-hqIRAIUgv5CZiI7vkqZkCy1Sg-b0IHQvJwIxv-1iBdAKKpvZoKxACVqbqoawytiZaHFix1hepndrO_d-4vd0LZtmx1pqSocWl4xVYmNdWHSZ1W8cnLg8pnFQU8oEaZr0jHbK3prLQ/s72-c/tunnel.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-2085559368228836736</id><published>2014-10-27T17:32:00.001+01:00</published><updated>2014-10-27T17:37:06.019+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="normalization"/><category scheme="http://www.blogger.com/atom/ns#" term="r"/><title type='text'>How normalization between two numbers works</title><summary type="text">

A friend asked me today about how to normalize a range into another one. Well, given a range from A to B we want to convert it to a scale of C to D, where A maps to C and b maps to D, and we want to do it with a linear function. For example, if C=1 and D=5, ie, interval [1,5], that means that A maps 1 and B maps 5.

The following linear equation does exactly what we need


f(x) = 1 + (x-A)*(5-1</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/2085559368228836736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2014/10/how-normalization-between-two-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/2085559368228836736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/2085559368228836736'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2014/10/how-normalization-between-two-numbers.html' title='How normalization between two numbers works'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-245121996167346701</id><published>2014-10-24T13:08:00.000+02:00</published><updated>2014-10-24T13:09:40.414+02:00</updated><title type='text'>NACE PHP Array - Statistical Classification of Economic Activities</title><summary type="text">


The&amp;nbsp;Statistical Classification of Economic Activities in the European Community&amp;nbsp;commonly referred to as&amp;nbsp;NACE, is a European&amp;nbsp;industry standard classification system&amp;nbsp;consisting of a 6 digit code.



Here I leave a PHP array with the categories of the first level. The European comunity give us a plain text file available hier.



A - Agriculture, forestry and fishing&amp;nbsp</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/245121996167346701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2014/10/nace-php-array-statistical.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/245121996167346701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/245121996167346701'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2014/10/nace-php-array-statistical.html' title='NACE PHP Array - Statistical Classification of Economic Activities'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-9129898645208891175</id><published>2014-07-11T10:55:00.003+02:00</published><updated>2014-07-11T10:55:50.957+02:00</updated><title type='text'>MAMP. Access MySQL with PHP via CRON or Command line.</title><summary type="text">

Again problems with MAMP.

I have a project in PHP which should access via CRON to MySQL running on MAMP.&amp;nbsp; With the default MAMP&#39;s configuration that is not possible. What to do?


OPTION A. Setting PATHs

1) Edit th .profile file (vi ~/.profile) and change the line

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

to

export PATH=/Applications/MAMP/Library/bin/:/Applications/MAMP/bin/</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/9129898645208891175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2014/07/access-mysql-with-php-via-cron-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/9129898645208891175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/9129898645208891175'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2014/07/access-mysql-with-php-via-cron-or.html' title='MAMP. Access MySQL with PHP via CRON or Command line.'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-7112145564257618653</id><published>2014-05-14T10:40:00.000+02:00</published><updated>2014-05-14T10:43:06.558+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="lamp"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Installing LAMP in CentOS (Linux Apache MySQL PHP)</title><summary type="text">


Here you will find instructions on how to install Apache, MySQL and PHP on CentOS.



Installing Packages

1 Install the required packages with the following command:&amp;nbsp;


# yum install httpd php mysql mysql-server php-mysql


Downloading Packages:
(1/7): httpd-2.2.15-30.el6.centos.x86_64.rpm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/7112145564257618653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2014/05/installing-lamp-in-centos-linux-apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/7112145564257618653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/7112145564257618653'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2014/05/installing-lamp-in-centos-linux-apache.html' title='Installing LAMP in CentOS (Linux Apache MySQL PHP)'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-6352307495357489770</id><published>2014-04-11T07:33:00.000+02:00</published><updated>2014-04-11T07:39:36.615+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CVE-2014-0160"/><category scheme="http://www.blogger.com/atom/ns#" term="heartbleed"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="mac os"/><category scheme="http://www.blogger.com/atom/ns#" term="mac os x"/><category scheme="http://www.blogger.com/atom/ns#" term="openssl"/><category scheme="http://www.blogger.com/atom/ns#" term="os x"/><category scheme="http://www.blogger.com/atom/ns#" term="osx"/><category scheme="http://www.blogger.com/atom/ns#" term="security"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="vulnerability"/><title type='text'>Patching OpenSSL for the Heartbleed Vulnerability CVE-2014-0160 in Mac OS X  and Ubuntu / CentOS / Fedora</title><summary type="text">
From 7th April we should update our OpennSSL version. Why? Security reasons. An OppenSSL vulnerability was disclosed which has been called one of the worst security holes in the last years. Let&#39;s do it!


OSX with MacPorts
To know your current version type: openssl version -a


myMac:~ Myself$ openssl version -a

OpenSSL 1.0.1f 6 Jan 2014

Opps, I have a bug in my system. It&#39;s time to update and</summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/6352307495357489770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2014/04/patching-openssl-for-heartbleed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/6352307495357489770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/6352307495357489770'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2014/04/patching-openssl-for-heartbleed.html' title='Patching OpenSSL for the Heartbleed Vulnerability CVE-2014-0160 in Mac OS X  and Ubuntu / CentOS / Fedora'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4690534361273837218.post-6636341481837019271</id><published>2014-04-10T12:56:00.002+02:00</published><updated>2014-04-10T12:56:54.026+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="inetaddress"/><category scheme="http://www.blogger.com/atom/ns#" term="internal ip"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="raspberry pi"/><title type='text'>How to get the internal IP address of our machine using Java (for Raspberry Pi)</title><summary type="text">

Hello, today... more Java

First of all, eth0 is your ethernet card. They are labelled &quot;ethX&quot; starting with an X 
of 0, so if you had two ethernet cards, the second would be &quot;eth1&quot;.

Now, the idea is to get the IP address of my machine (small Raspberry Pi) using Java.&amp;nbsp; Normally, we can try simply with InetAddress.getLocalHost(). But if we have more than one ethernet card or a loop perhaps </summary><link rel='replies' type='application/atom+xml' href='http://texnological.blogspot.com/feeds/6636341481837019271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://texnological.blogspot.com/2014/04/how-to-get-internal-ip-address-of-our.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/6636341481837019271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4690534361273837218/posts/default/6636341481837019271'/><link rel='alternate' type='text/html' href='http://texnological.blogspot.com/2014/04/how-to-get-internal-ip-address-of-our.html' title='How to get the internal IP address of our machine using Java (for Raspberry Pi)'/><author><name>Sergio</name><uri>http://www.blogger.com/profile/03716610560161067013</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2juBicMJSE6-azUd_-HTmAC5nhJOPbMmF3_NNrw2aGmibUYF59iwnbDyYQgGhnxsG08RpXzbaHf44yv6nNlnNjEit3eZ4FxZGFd1WVy6dXPE7M6w3f6EdgH_serKG/s1600/mzi.xzjprpus.175x175-75.jpg'/></author><thr:total>0</thr:total></entry></feed>