Installing ICMS

Posted on

ICMS Download: https://github.com/Nixhatter/CMS Setting up the database: Log into mysql on your server: $ mysql -u root -p Create the database, remember the name! CREATE DATABASE databasename; Grant priviliges to your user, on the new database: GRANT ALL PRIVILEGES ON databasename.* TO "username"@"localhost" IDENTIFIED BY "password"; Resets the privilege table so it takes effect immediately: FLUSH PRIVILEGES; Exit out EXIT Going through the Installer First Page This is your general site information. Site Name - Choose any name you want! Site file locations - the pre-filled in location is usu…

Read more »

Session_start Permission Denied

Posted on

I updated my centOS 6 box with nginx (yum update) and got this strange error on my web application. ( ! ) Warning: session_start(): open(/var/lib/php/session/sess_, O_RDWR) failed: Permission denied (13) in Turns out, the /var/lib/php/session/ folders' permissions changed to root:apache. This is most likely due to the RPM package being configured for Apache and not nginx. Annoying as it was to figure out, the solution is easy. chown -R root:nginx /var/lib/php/session/ nginx being the user nginx is using. Also, you would have to do this everytime yum updates the php package.…

Read more »

Setting up Tess4J on IntelliJ

Posted on

Here's a quick guide to getting Tess4J Up and Running. Let's go ahead and start up IntelliJ, and create a new project with the first class being called Tesseract. We'll be using the provided sample code. package com.company;; import java.io.File; import net.sourceforge.tess4j.*; public class Tesseract { public static void main(String[] args) { File imageFile = new File("eurotext.tif"); Tesseract instance = Tesseract.getInstance(); // JNA Interface Mapping // Tesseract1 instance = new Tesseract1(); // JNA Direct Mapping try { String result = in…

Read more »

IntelliJ Git Error

Posted on

Error: Cannot run program "git.exe": CreateProcess error=2, The system cannot find the file specified The problem is that intelliJ cannot find the Git program on your computer. Either because you don't have it installed or because it's in a different location. Easiest way to fix it, is to download git, and put in the new path. If you have the GitHub app installed follow these instructions. on intelliJ go to Settings -> Version Control -> Git In text box next to "Path to Git Executable" you will see "git.exe", just give it the following full path. Check if you have git installed at this loca…

Read more »

Compiling Your First Java Program with IntelliJ

Posted on

Part 1: Setting Up IntelliJ Now you should have the "Hello" project open on IntelliJ, and it should look something like this. On the left you have your project folder, it's just a more advanced view of the actual folders on your computer. Main with a C symbol, is a class. Which holds all your actual programming. Just incase you couldn't grab the github project, you can find it here: https://github.com/Nixhatter/Hello To Run the project, just go to the Run menu at top and hit run (Shift+f10). Give it a few seconds to compile, and at the bottom you should see something like this. Congratulations…

Read more »

Setting up a Java Project with IntelliJ and GitHub

Posted on

Download List: IntelliJ - http://www.jetbrains.com/idea/download/ JDK - http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html GitHub - https://mac.github.com/ or https://windows.github.com/ You will need a GitHub account GitHub Create an account on https://github.com/ and download the app for your OS, listed at the top. IntelliJ IntelliJ is a lightweight Java IDE that just makes everything simple. Follow the standard installation procedure on your OS, and then start it up. If it asks you to import any preferences, select the "Do not import" option. At the welc…

Read more »