Jim Perry the projet leader of CodeIgniter is dead

For the last few months our project lead, Jim, has been struggling with lung cancer. He was undergoing treatment. Unfortunately, it wasn’t enough. A few days ago he passed away in his sleep.

Jim was the driving force behind keeping us moving, and was instrumental in rescuing CodeIgniter from EllisLab and driving it forward.

Turns out Jim’s birthday was February 24th. We would like to shoot for that date for a final release of 4.0.

CodeIgniter is a Framework with a small footprint with an Exceptional performance, nearly zero configuration. and Strong Security. The power of CodeIgniter is not only the code but its comunity who is really Great.

Jim Perry Linkedin he was a retired instructor at British Columbia, Canada

HP LaserJet M1120n MPF

On my Kubuntu system, my printer is not working anymore. Linux is a very good operating system but the hardware is often a problem. We should have IT skill to make it working.

 

This All in One offers 600×600 dpi resolution with 30 pages per minute (ppm) for black text and 23 ppm for color printouts. This printer offers printing, scanning and copying functions.That let you preview and print without a PC and using a memory card. It also comes with the features like scan reso

 

This is a good Laser printer with a scanner. You can use it like a photocopy machine and it have RJ45 plug. You can use it in the network.

I need to install hplip then download hplip-3.12.9.run

apt-get install libcups2-dev libusb-1.0.0-dev libcupsimage2-dev libsnmp-dev libdbus-1-dev libsane-dev

sh hplip-3.12.9.run

How to move a multisite wordpress to a single side wordpress ?

This blog needs to be moved. He is presently hosted in an american webhost Dreamhost. This host is nice. You can have lot of web space. But sometimes workpress needs more power or the delay between Europe and USA suck.

So I decided to move it to OVH.

The limit of my OVHh host is the database. I only have one database and it is limited to 200Mega. I can put many domains so if you use many wordpress on one database prefix is needed. As I installed wordress with default prefix how to process.

Before doing the move work. I should know how to do it.

 

1. rename the tables manualy.

 

Rename table wp_commentmeta to new_commentmeta;
Rename table wp_comments to new_comments;
Rename table wp_links to wplabo_links;
Rename table wp_options to new_options;
Rename table wp_postmeta to new_postmeta;
Rename table wp_posts to new_posts;
Rename table wp_termmeta to new_termmeta;
Rename table wp_terms to new_terms;
Rename table wp_term_relationships to new_term_relationships;
Rename table wp_term_taxonomy to new_term_taxonomy;
Rename table wp_usermeta to new_usermeta;
Rename table wp_users to new_users;

2. manual change in table wp_options and wp_usermata

search in wp_option the value user_roles in the field options_name

SELECT *  FROM `kris_options` WHERE `option_name` LIKE '%user_roles%'
and change the prefix like new_user_roles
SELECT * FROM `kris_usermeta` WHERE `meta_key` LIKE ‘%wp_%’
Change all wp_ by your new prefix new_

3. copy the sources localy

By ftp copy all sources in a local directory.

4. copy the sources to the new site

5. Change the wp_config

define('DB_NAME', '...');

/** MySQL database username */
define('DB_USER', '...');

/** MySQL database password */
define('DB_PASSWORD', '...');

/** MySQL hostname */
define('DB_HOST', '...');

...

$table_prefix = 'new_';

After transfering the new wp_config by ftp. Your new site should be working on your new host.

How to add youtube video in interpals

You can add embeded youtube video in interpals message or content. I will explain you step by step how to do it.

1. Select the url of the video. just copy past the address for example http://www.youtube.com/watch?v=WObWGpe1ff8&feature=related

2. Identify the youtube code. The youtube code is in red

http://www.youtube.com/watch?v=WObWGpe1ff8&feature=related

3. here select WObWGpe1ff8

4. Then put the code

You have an option : click the youtube button

Then past the code like this

click OK and it is done

Hubzilla my experience

Hubzilla is a powerful platform for creating interconnected websites featuring a decentralized identity, communications, and permissions framework built using common webserver technology. It could be an alternative as facebook, twitter or other services taken by big companies.

Finding a hub

That is not as easy. You have many hubs but many are outdated or don’t accept open registration

What the hub can do ?

As soon you find a hub where you can registrare an account you discover what the hub can do and what the hub cannot do. But the list of feature (activated plugin and feature) is not listed in a human reading. Exemple is the ostatus plugin activated or not. I cannot activated why ? Haaa that hub does not allow it. —> grrr I have to find an other hub and start at the begining.

Social ?

Hubzilla is a powerfull tool but it is a social tool. You expect communities or at least a community. But untill now the community is only hubzilla community. Where are people ? The community is small and not growing…. That dimension is missing. Hubzilla is only a tool not a community.

New users are not comfortable

I just notice that new user don’t stay. They try, open an account a channel and don’t use it. Why ? That would be interesting to try to answer that question. We could respond. Hubzilla is powerfull, it is a revolutionary tools, you are anomyme and privacy is really in the core etc. etc.. but the fast is new user are not able to dive into it and use it for a real use.

 Slow

My user experience in hubzilla is that it is often slow. I am waiting often after clicking somewhere.

Double configuration

Often the admin should activate or parameter a plugin and the member should do the same. We need double configuration. If either the member or the admin don’t do it. It will not work. Even admin is not able to configurate plugin for member. That level of complexity is something like a weekness of course we also can see that like a strongness.

Simplicity should be the target.

How to make something complicated simple ? I hope the level of simplicity sill be the target for hubzilla.

 

Hubzilla is changing quicky and improvements are frequent. That is my hope. I am sure improvement will lead into the right direction. (simplicity)

How to integrate Recaptcha in Prestashop in 3 steps

Prestashop is one of the most used ecommerce on the internet BUT the contact form has no protection again the spam. Of course you can buy an additional plugin but I will explain how to integrate a spam protection without paying. You have to create and configure an account, change 2 sources. You can make it in 30 mn or less.

Here is a howto step by step for prestashop 1.6 (I don’t know about prestashop 1.7 but I imagine it should be similar).

1 Setup your Google reCAPTCHA if you don’t have it

https://www.google.com/recaptcha/intro/index.html

Note the key and the secret key

You have to configure it and put your domain name.

2  Change the contact-form.tpl

First you have to change the contact form (client side) contact-form.tpl should be in your theme. Open an editor and search the submit botton

For me it is like that

 <div class="submit">
 <button type="submit" name="submitMessage" id="submitMessage" class="button"><span>{l s='Send'}<i class="icon-chevron-right right"></i></span></button>
 </div>
 </form>

 

Just above add few lines of code. Replace key by your key

 <script src='https://www.google.com/recaptcha/api.js'></script>
<div class="g-recaptcha" data-sitekey="key"></div>

 

That should look like that

<div>
 <script src='https://www.google.com/recaptcha/api.js'></script>
 <div class="g-recaptcha" data-sitekey="key"></div>
</div>

 <div class="submit">
 <button type="submit" name="submitMessage" id="submitMessage" class="button"><span>
{l s='Send'}
<i class="icon-chevron-right right"></i></span>
</button>
 </div>
 </form>

3 Change ContactControler.php

If you don’t have this source in override\controllers\front copy it from controllers\front

Then you have to add few lines to check if the captcha is ok or not

search the postProcess() function it should be at the begining (2nd function) and add

  if (Tools::isSubmit('submitMessage')) {
 $extension = array('.txt', '.rtf', '.doc', '.docx', '.pdf', '.zip', '.png', '.jpeg', '.gif', '.jpg');
 $file_attachment = Tools::fileAttachment('fileUpload');
 $message = Tools::getValue('message'); // Html entities is not usefull, iscleanHtml check there is no bad html tags.
 $id_order = (int)$this->getOrder();
 if (!($from = trim(Tools::getValue('from'))) || !Validate::isEmail($from)) {
 $this->errors[] = Tools::displayError('Invalid email address.');
// add the 2 lines from here
 } elseif (!($gcaptcha = (int)(Tools::getValue('g-recaptcha-response')))) {
 $this->errors[] = Tools::displayError('Captcha error');
// to here

How is Mastodon the new open source twitter

Mastodon is a free, open-source social network. A decentralized alternative to commercial platforms, it avoids the risks of a single company monopolizing your communication. Pick a server that you trust — whichever you choose, you can interact with everyone else. Anyone can run their own Mastodon instance and participate in the social network seamlessly.

What is the difference with twitter

  • Twitter display message like he wants while Mastodon show them chronologicaly.
  • You have no ads on Mastodon
  • You have many instances on Mastodon. You can register where you like and you can communicate with the whole network. Like email
  • You can see the local timeline (all messages of your site) and the federated timeline (all messages of all instances)
  • Mastodon is free : Everyone can install it. It doesn’t belong to a company.
  • You can write up to 500 characters on Mastodon while it is still limited to 140 on twitter.
  • Mastodon use ostatus protocol. That means that you can communicate with other app like Gnusocial or others.

If you want to follow me : Just search for my ID kris@gnusocial.ch

If you want to register a new account, loot at the instance directory 

Tutorial How to make a voice record with protools first

Pro Tools is a digital audio workstation which can be used for a wide range of sound recording and sound production purposes. Like all digital audio workstation software, Pro Tools can perform the functions of a multitrack tape recorder and audio mixer, along with additional features that can only be performed in the digital domain, such as non-destructive editing, using the Undo feature, which allows an engineer to undo any changes he or she does not like.

If you start using ProTools, you can download a free version Protools first. This version is just limited but you can use it for training. If you are completely beginer and just want to have a basic audio recording this is a tutorial for you. You have plenty of tutorial but most of them are for musicians or for advanced level. In halt an hour you will be able to create your first record.