pthreads install on CentOS with cpanel (resolved)

November 17th, 2015 No comments

I upgraded from PHP5.4. (end of life) to PHP5.6, and lost the functionality of pthreads on my CentOS6.7 VPS.
After much searching and trials, it turns out that I need specify the specific version of pthreads to be installed, otherwise the newest version gets installed. In this case the newest version pthreads-3.0.9 is only available for php7.0
The last version that worked with PHP5.x is pthreads-2.0.10. None of the 3.0.x versions of phteads work with the php 5.x family.

So to install pthreads to work with php 5.6, run:
#pecl install pthreads-2.0.10


Just for reference, if you try to install the latest pthreads (currently 3.0.9) while running php 5.x, you get the message:

pecl/pthreads requires PHP (version >= 7.0.0RC2), installed version is 5.6.15
No valid packages found
install failed

Categories: Computer geek stuff, Linux Tags:

arduino robot links

September 29th, 2015 No comments


Categories: Arduino, Electronics Tags:

Laravel project returns blank page

September 10th, 2015 No comments

I had this happen a couple of times so I should document it for future reference.
Copying a laravel project to another account renders some pages (pages that use templates) as blank. The change is to chmod the storage/app, storage/framework and storage/logs folders to 777.
I don’t know if all the folders need that permission, but I didn’t investigate what the minimum permissions required are.

Categories: Linux Tags:

image adjustments for inDesign and printed images

August 21st, 2015 No comments

Out of inDesign, the printed material looks too dark. I get the dot gain thing, but I need to know how much to increase brightness of an image so they look proper.

I am adjusting the same image multiple times and sending that image to the printer to see how each one looks. The adjustment I’m making is Shadows/Highlights as I don’t exactly want to adjust brightness. I want the highlights to stay where they are. Curves also didn’t quite work as I intended.


“Amount” is the only parameter I’ll be adjusting: 5,10,15,20,25,30% and print them to see what the effect is in print.


Categories: Book Design Tags:

Object Oriented PHP

July 12th, 2015 No comments

Some links to reading material on OO PHP–net-12762


Defining relationships in databases


Categories: Uncategorized Tags:

Learning a MVC framework : laravel 5

July 3rd, 2015 No comments

Some useful links:

call custom files (php or otherwise) into a laravel project. For me app.php file to which I added

'Helpers'   => 'app\TradeLogic\engine'

was in config/app.php

The app.php file didn’t help.

What actually worked was adding :

include_once (__DIR__.'/../resources/views/engine.php');

to the file bootstrap/autoload.php
The path shown is from the location of the autoload file.



To drop a column, need to run “composer require doctrine/dbal” otherwise a rollback that drops a column will fail.

If the filename of a migration got changed, or it got deleted, the ‘php artisan migrate’ command will complain. Need to run ‘composer dumpautoload’ shich will fix things.

Categories: Web development Tags:

Casting aluminum

June 18th, 2015 No comments

Interesting thread on Casting Strength found here.

Now, if you want to experiment with casting an alloy of ths type, here’s how to get out cheap;-) Find somebody who does punch work and ask them to save the slugs for you. I have a 5 gal bucket of 3003 slugs that are 3/8×3/4″ ovals, punched out at a buddy’s shop. It is the perfect size for the crucible, doesn’t require breaking up, melts really fast, and being a weldable alloy, it flows and pours like you wish everything would.

Once cast, it machines just like 3003; soft, gummy, and gooey. It makes very solid castings using the lost foam process in dry sand. Much better than scrap waterpump housings and old VW pistons. That may be the best alloy for you to use, actually. It’s soft enough to avoid cracking and, as we all know is just rediculously easy to weld. It’s not as strong as 6061, but you’ll have a really tough time making a set of castings up that will mate well under load with 6061 T6 without the casting being as big as the engine block.


I worked for a few years with two guys who built custom racing bike frames as a side business. Short of going to graphite composite, their preference was alloy steel tube that was silver sodlered at the joints. They used reinforcement at joints by using two tube sizes that nested and put on a tube seat of the larger tube and then inserted in the frame member to get a double wall at structural joints. They also used swaged tube that was thinner wall at midspan and heavier wall at the tube joints. The swaged tube was strictly special order only.

the reason for using silver solder was to avoid destroying the wrought grain structure at the joint. TIG welding would change the grain structure from wrought to cast structure where the metal melted, making a much weaker joint.

From experience with truck frames in the 70’s, aluminum is no substitute for steel. Aluminum truck frames were made to reduce weight and increase payload in log and flatbed trucks. However, the aluminum frames inevitably cracked and had to have reinforcing plates installed, which made the frame heavier than the steel version and still prone to cracking. It is also much less stiff than steel by a factor of at least 3.

Last thing, 6061-T6 is cast, wrought, solution annealed and then precipitation hardened. The grain structure is not quite cast, but some of the wrought structure goes away during the solution anneal. Casting 6061-T6 with a precipitation hardening process won’t be quite as strong as the T6 processing, but will be better than as-cast and will machine better. There is another type of processing, T8, which is cast, wrough, solution annealed, wrought again and then precipitation hardened which comes out stronger and harder than T6, but no stiffer.

Categories: Engineering Tags:

kvm localized virtual desktops

May 7th, 2015 No comments

I read something interesting the other day. Running multiple VMs, on the same computer; the catch is that they are all running on the same desktop (not headless) sharing one display. The term is “kvm localized virtual desktops”.

The place I read this was the UnRaid blog, talking about KVM integration into the UnRaid 6 system (SOURCE).

Since OpenSuSE has tools and support for kvm, I shall try this.

It would be interesting to run linux and windows and not have to dual boot, and have access to the same GPU from both OSs.

Categories: Linux Tags:

space usage

May 7th, 2015 No comments

Recently came across one of my linux VM machines that ran out of disk space. But where did all the space go? What ate it up?

du -h <dir> | grep ‘[0-9\.]\+G’

This will list a sorted view of the foles/folders from largest to smallest.


Categories: Linux Tags:

Accessing network drives from command prompt

April 27th, 2015 No comments

Oddly enough on windows you can’t just type R:/ in the cmd prompt and change directory there. That syntax only works for local drives.

You have to type /Df:\ to open the f: drive

Categories: Computer geek stuff Tags: