You are here

Risharde's Blog

PHP cannot write to tmpfs and maybe /tmp

So this is a hard one to describe on google but it's an important issue I came across while building a new control panel for CENTOS 7.
I needed to access a tmpfs system for read and write. After using php to create files, the files were not appearing in the new location. Low and behold it was because of this issue related to a systemd setting for the php-fpm.service
The setting was set as follows
PrivateTmp=true

I changed that to PrivateTmp=false then restarted the service and now php can access the correct tmpfs folder I mounted.

More details: https://www.the-art-of-web.com/php/where-is-tmp/

Seaweed contains cancer causing agents - What in the world?!

Yes, the title isn't click bait. I recently bought "Nori" seaweed and noticed the warning that it contains elements that are known to cause cancer in the state of California. I was downright stupefied. After eating sushi a few times and loving it, the idea that something that tastes so delightful and even tastes as if it comes from the fresh clean sea totally shocked me. Even more worrisome is the idea of consuming something that could downright be unhealthy for me - I'm not suicidal!

So I did what I usually do, digged a little bit deeper. Came across a link which gave me some insight into what might be causing it.
https://oag.ca.gov/system/files/prop65/complaints/2014-00331C3308.pdf

Arsenic! OMG, really?! Yes really! While seaweed is purported by even health websites as healthy, you need to read up more about the bad things it could have in it. In fact, a study in 2013 against a few thousand Japanese people showed a corelation between the consumption of bad arsenic (inorganic arsenic - from my research) that increased the risk of lung cancer in men who smoke.

And guess what, apparently there's more dangers - sorta. It seems seaweed also contains up to 800 times the recommended dose of iodine. Yup, you have to be careful with this and your thyroid. It's not entirely certain what the effects are but I'd be careful and so the suggestion for a possible solution is as follows.

The possible solution
Well, apparently boiling or heat treating (I have no idea what they mean by heat treating) the seaweed can remove most of the iodine and some of the arsenic - something I'm more than willing to do. In fact, I'd rather prepare the seaweed myself because I don't know if they do it at my favourite restaurant. So before you eat, man, sometimes it's good to source ingredients, learn there's warnings and find out what's causing it and possible solutions. I'm really happy I discovered this and I hope this has been helpful to you!

Stay safe and keep researching I guess

Netflix has rubbish content!

I've been watching Netflix made movies lately since there's been a large influx of Netflix "originals". My first one was so terrible, I can't remember the name of it. Of course, I didn't watch it out. Then there was the greatly acclaimed BirdBox which was the talk of social media. I decided to give it another try. BirdBox to me, was a cheap film with the exception of having to pay Sandra Bullock. I was quite deceived because every other Sandra Bullock movie (I know she didn't make the movie, you know what I mean), always ended up with me being mentally satisfied but after watching Sandra Bullock in Birdbox, I was infuriated by what I felt was a betrayal of my faith. I cannot believe she acted in such a poorly scripted show - is she that desperate for the money that should would stake her reputation on such a poorly designed movie? A movie that left me with unexplained questions about what really caused whatever actually happened. Yup Sandra Bullock, I don't think I'm a fan anymore. But as if that was not enough, I saw the trailer for Velvet Buzzsaw and thought it would have been great. This movie was offensively ridiculous. I mean I feel absolutely offended Netflix that you presented me with the rubbish that is Velvet Buzzsaw and it left me wondering only if the movie explained what or whom Velvet Buzzsaw was. I am so offended by this that I will be rethinking my Netflix subscription. Shame on these producers - this is not art, this is rubbish.

Cgroups on OpenVZ CENTOS 6

Getting the following error? Well I hate to break it to you but OpenVZ running CENTOS 6 simply isn't enough to get Cgroup resource allocations going. Don't waste your time as I did to have to figure out this the hard way.

Stopping cgconfig service: [ OK ]
Starting cgconfig service: Error: cannot mount cpuset to /cgroup/cpuset: Invalid argument
/sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting failed
Failed to parse /etc/cgconfig.conf or /etc/cgconfig.d [FAILED]

OSMO Mobile 2 Bluetooth Pairing

In the video below, I run through a secret technique that usually resolves issues you maybe having to pair the DJI OSMO Mobile 2 with your android phones. Sometimes the app is not able to connect to the OSMO Mobile 2. Usually it's because the USB developer options are disabled on your phone. If this doesn't work, you should try moving the OSMO Mobile 2 to a field where there is no other bluetooth devices and try to connect your phone to it - sometimes rogue bluetooth devices tries to pair with the OSMO Mobile 2 and this basically stops your phone from bluetooth connecting to the OSMO Mobile 2. Hope this helps - check out the video below!


Solving Renesas USB 3.0 issues on Windows 10

This poorly documented issue made me waste hours upon hours. Please consider subscribing to my Youtube channel if this works for you.

The issue:
On Windows 10, the USB 3.0 ports do not detect any USB devices connected to it. In device manager, you will see the Renesas Electronics* USB 3.0 driver show a yellow warning icon.

The cause:
Really it seems that the USB firmware is old and incompatible with Windows 10

Solution:
Renesas Electronics* USB 3.0 Firmware Updates
Download and run the following once you are certain your computer or laptop has Renesas Electronics* USB 3.0
https://downloadcenter.intel.com/download/22775

Virtualmin CGI not executing for website

Noticed this very strange issue on a client's hosting server that was running VirtualMin.
The server was transferred to another server after which, all website began getting internal server error messages.

Log debug showed the following when I tried PHP5 option:
[Wed Sep 12 01:34:55.671798 2018] [cgi:error] [pid 20963] [client 190.213.168.75:26586] End of script output before headers: php5.cgi
[Wed Sep 12 01:34:56.035616 2018] [cgi:error] [pid 20964] [client 190.213.168.75:26587] End of script output before headers: php5.cgi, referer: https://studentfutures.org/info.php
[Wed Sep 12 01:34:58.522405 2018] [cgi:error] [pid 20992] [client 190.213.168.75:26588] End of script output before headers: php5.cgi
[Wed Sep 12 01:34:58.875249 2018] [cgi:error] [pid 20960] [client 190.213.168.75:26589] End of script output before headers: php5.cgi, referer: https://blah.org/info.php
[Wed Sep 12 01:34:59.585248 2018] [cgi:error] [pid 20961] [client 190.213.168.75:26590] End of script output before headers: php5.cgi
[Wed Sep 12 01:34:59.943814 2018] [cgi:error] [pid 20962] [client 190.213.168.75:26591] End of script output before headers: php5.cgi, referer: https://blah.org/info.php
[Wed Sep 12 01:35:35.833060 2018] [cgi:error] [pid 20963] [client 63.143.42.253:63699] End of script output before headers: php5.cgi, referer: http://blah.org
[Wed Sep 12 01:36:35.770102 2018] [cgi:error] [pid 20964] [client 63.143.42.253:47157] End of script output before headers: php5.cgi, referer: http://blah.org/

Log debug showed the following when I tried PHP7 option:
[Wed Sep 12 01:37:17.313511 2018] [cgi:error] [pid 21753] [client 190.213.168.75:26633] End of script output before headers: php7.0.cgi
[Wed Sep 12 01:37:17.697382 2018] [cgi:error] [pid 21754] [client 190.213.168.75:26635] End of script output before headers: php7.0.cgi, referer: https://blah.org/info.php

It seems suexec permissions were not restored properly, the following command fixed it!
chmod 4755 /usr/sbin/suexec

Just got a new DJI package in the mail!

Just received a new DJI package in the mail!!!! OMG!!!!
Check out the video to see what it is!!!
Is it the Osmo Mobile 2? Maybe the DJI Spark? Maybe it's a DJI Phantom? How about the DJI Mavic?!

Rejected by Caribbean Airlines

For the past few times I've seen Caribbean Airlines job opportunities, I've applied. Before, I usually wouldn't get a response but in the latest two applications, I got responses where I was rejected. Since my resume apparently wasn't impressive enough to get short listed, I can't imagine what those other candidates have. I'll be looking to see whether the choices will make Caribbean Airlines a profitable organisation in the future. I guess they don't need someone who did the airplane ticket scanning application and can build websites that load in less than 200 milliseconds.

One of the most beautiful songs I came across recently

I decided to watch Sky High, an old show from Disney when I was in my teenage years. And the father who is a super hero shows his son the secret sanctum. But the son has no super powers and so he's sad as he heads up to the roof. Then the song begins to play - Elephant - Please Please Please Let Me Get What I Want

Happy New Year 2018

This year was challenging to describe it as best as I can (2017). There were many ups and a few downs. It's close to the end of 2017 as I look forward to 2018. I'm a bit sad today... it's been 4 years since I've lost dad. I feel as though I failed him. I feel as though fibrosis won the battle and I'm reminded how vicious the disease is as I'm also learning that my uncle not blood related has a similar pulmonary issue that involved honeycombing (honeycombing being an unfortunate sign). It's hard to think about his future and it's just a reminder as I said, of what I saw my father go through. Depending on God's love and mercy to show His power beyond what I could ever imagine (yet still I have to be careful that my faith will not be broken). I want to let you guys know how I feel but I'm afraid to write. I've written so much before but I am afraid that writing will be a sense of bad luck - though I'm hoping it isn't. If it doesn't seem that way then look out for more posts. I'm not going to write anymore on Facebook. I'll write it here as long as God spares life - really and truly, it's all up to God at this point. I wish you all a Happy New Year and God's richest blessings upon your life. You can always get in touch with me via risharde@gmail.com . I'd love to hear from you! Happy New Year 2018!

YTSubscribe

YTSubscribe is the best social exchange website to get REAL, FREE Youtube Subscribers! We also offer free added bonuses such as content designs and much more all for free! Visit http://www.ytsubscribe.com for more details! Get popular on Youtube with the help of many other Youtubers! Joining is absolutely free!

WHMSUPERB WPTools (Wordpress Tools)

WHMSUPERB Wordpress Tools for cPanel empowers your users to detect issues, install Wordpress websites and manage website backups!

[LIMITED TIME DISCOUNT]
Purchase license $9.99 / year (15% discount!) OR install for free 14-day trial

CLICK FOR MORE DETAILS

User Features (cPanel)

Empower your cPanel users with Wordpress administrative power!
Easily install a new Wordpress website!
Easily reset your Wordpress website admin password!
Fix your migrated Wordpress website (white screen of death) using the Fix WP Domain feature!
Diagnose database connectivity issues with WP websites
Scan for WP Malware and other viruses!
Scan for WP DATABASE Malware from database posts data!
Backup your Wordpress website files and/or database!
Restore your Wordpress website files and/or database!
Download your Wordpress backup archives to your computer!
Upload your Wordpress backup archives back to the server and restore them!

Screenshot of WP Tools in the user's cPanel account

It feels like it's been years

It feels like it's been years since I blogged though I am pretty certain its only been about a month.. or two... or three...
It has been really hard finding a job that suits me well in the IT industry in Trinidad. I always hate it when the good guys lose and the bad guys win - especially when I'm the good guy.
I also had an interview today and it really had me a bit down... I really like to excel in anything that I do and knowing that it didn't go well just doesn't rest easy with me.
Life has been tough particularly due to my view on myself and my achievements. Now that much of my savings has depleted, I really need to get back out there in the workplace but it seems really difficult to even get short listed for an interview.
I spent a lot of time serving God but I'm still waiting for that extra help from Him... a bit worried because I'm getting close to desperation and if you don't know how that feels, it really isn't a good feeling. Anyways - this is my life... I am still thankful for it, just not as thankful as I can be if I can get something better. Not sure if you guys know what I mean. I know some of my rivals will be so happy to read this but the truth is the truth so every dog has his day... I haven't had one of those in quite a while... maybe in the days to come this dog will get back into something.

Pages