Programming & Scripting

Read all posts Tagged for this section

Fix HTTP 403 Forbidden, Failed to Open Stream – PHP Copy function

I wrote a simple PHP program to copy an image from a website to local directory. The copy() function will copy a file to the specified destination and it can be used to copy a file that's stored locally and ...

How to install LEMP on Ubuntu 14.04 LTS

LEMP is a group of open source software stack used to setup web server, database and PHP on a Linux operating system to serve dynamic web pages. LEMP stands for Linux, Nginx (pronounced as Engine X) web server, MySQL database ...

Install PHP 7 on a fresh Ubuntu VPS: [Fix] Unable to locate package PHP

Recently one of my client provided a fresh VPS and asked me to install PHP 7, Apache and MySQL. While installing PHP, I encountered the below error: root@webimage:~# apt-get install php Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to ...

How to Fix the_date() Returning Empty Date inside Loop in WordPress

Are you using the_date function inside the loop to display post published date? Well, you might notice the_date() returning empty date for the posts that are published on the same day. For example, if you have two posts published on the ...

Not safe to rely on system’s timezone settings -PHP Warning

Here's another error related to Datawrapper installation - "PHP warning:  It is not safe to rely on system's timezone settings". Below is the complete error message from Apache error_log file. PHP Warning:  phpinfo(): It is not safe to rely ...

Fix 404 Error on Password protected folders inside WordPress!

If you are trying to password protect a folder inside WordPress directory, then you will probably end up with '404 not found' error while accessing it via web browser. This error is caused due to the WordPress Permalink feature. This ...

Unknown column password_last_changed in ‘mysql.user’ [Solved]

Question: After upgrading MySQL to version 5.7, I'm not able to create a user or set password using GRANT query. Here's the error message: Unknown column password_last_changed in 'mysql.user'. For e.g., mysql> GRANT ALL PRIVILEGES ON db_name.* TO 'db_user'@localhost IDENTIFIED BY 'mypass'; ERROR 1054 (42S22): Unknown ...

Change MySQL engine type of all tables from MyISAM to InnoDB

Do you want to change MySQL engine type of a table from MyISAM to InnoDB? Well, it can be done using ALTER TABLE statement, but what if you have few hundreds of tables and you need to convert all of those ...

Create Maven JAR in NetBeans IDE – Step by Step tutorial

It was my first Java project after several years of working with Linux and PHP. Fortunately, Maven with NetBeans saved my day. But what I felt was lacking with NetBeans is the ability to create Maven JAR file - yes, I ...

MySQL Table Crash fix – marked as crashed and should be repaired?

One of the table in my MySQL database has been corrupted and the worst part of it is, the corrupted one was the sessions table - due to which the application was not able to store sessions for the users. Well, I ...

vps germany

maven missing dependency jta-1.0.1B – Failure to find javax.transaction:jta:jar [Solved]

I got an error - maven missing dependency for jta-1.0.1b while building a CloudReports project in Netbeans IDE. The error hinted that it has failed to find javax.transaction:jta:jar in the maven repository. Below is the complete error message. An ...

Fix Custom option is disabled no YARPP templates were found in your theme

Question: I have been using YARPP WordPress plugin for displaying related posts in my website. The plugin comes with options such as List, Thumbnails and Custom. I tried using both the List and thumbnails display options, but the Custom option was ...

How to Create a HTML anchor link to a specific page in PDF?

Generally HTML pages can contain links that can target to PDF file and when clicked, the browser opens the PDF file starting from the first page. Well that's the default behavior, but I wanted to create a link in HTML page ...

What is CloudSim Framework and How to use it with NetBeans IDE?

If you are a student or a researcher working in Cloud computing domain, then you must have heard about CloudSim framework. It's a framework for modeling and simulation of cloud computing infrastructures and services. CloudSim supports modeling and simulation of ...

What’s the difference between die and exit functions in PHP?

One of my student asked me couple of questions - what is the difference between print and echo (which I have covered already here) and the difference between die and exit functions. Well, there's no difference between exit and ...

How to fix Python Installation Error while loading shared libraries: libssl.so.1.0.0? [Solved]

Question: Thanks to the guide on How to compile and install Python with OpenSSL Support. However, the installation failed with an error message error while loading shared libraries: libssl.so.1.0.0 cannot open shared object file during make. According to the installation guide, ...

Python Error – urllib2 URLError: urlopen error unknown url type: https [Solved]

Question: I got this error urllib2.URLError: <urlopen error unknown url type: https> while installing packstack. After checking the program, I understood that the script is importing urllib library and uses urlretrieve function to fetch a file from https URL and it seems like ...

How to Install Multiple Versions of Python (2.7 and 3.5) Without breaking System tools and Create Isolated environment using Virtualenv?

Today, I'm going to tell you how to install Python 2.7 and 3.5 versions on CentOS 6.4. And we are going to do this without breaking the existing Python installation (the default system installed version is 2.6.6 on CentOS 6.4) ...

How to Solve ImportError: No module named ConfigParser?

Question: I was stuck with an error ImportError: No module named ConfigParser when I run packstack command in CentOS. Below is the complete error message: $packstack --gen-answer-file=answers.txt Traceback (most recent call last): File "/usr/local/bin/packstack", line 4, in <module> __import__('pkg_resources').run_script('packstack==7.0.0', 'packstack') import ConfigParser ImportError: No module named ...

  1. Pages:
  2. 1
  3. 2
  4. 3
  5. 4
  6. 5