Page 2 of 4

Configuring A WebServer Firewall for Ubuntu 14

Here’s a quick guide for configuring a Firewall for Ubuntu 14.

The source of this guide is: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-14-04
And I’d highly recommend checking it out.

Frankly the guide posted here is meant for personal use, but it may prove useful to others.

Continue reading

Increase Upload File Size for Apache Ubuntu 14

This documentation/guide is for how to modify Ubuntu 14’s Apache PHP5 so that a larger file size can be uploaded.
In this example, I modified the file size limit of 2mb to 4mb, as well as increased the max_execution_time so that there’s enough time to actually upload the larger file size to the server.

The process can be achieved several ways.

The easiest method is to modify php.ini.

sudo nano /etc/php5/apache2/php.ini

Modify the following lines:

upload_max_filesize = 4M
post_max_size = 8M #default
max_execution_time = 300

After saving the file, restart apache:

sudo service apache2 restart

い and な adjective conjugation

い Adjectives

い Adjectives have their い character replaced with something else.

  1. FIRST Apply a negative conjugation if the adjective is to be negated.
  2. THEN Apply past conjugation if it was a past descriptive adjective.

Negative Uses: くな Which actually brings in a new to use for the replacement character.

Past Conjugation: replaces with かった

Adjective Conjugation Example:
Dictionary Form: ねむ

  • Present Affirmative: ねむです。
  • Present Negative: ねむくなです。
  • Past Affirmative: ねむかったです。
  • Past Negative: ねむくなかったです。

な Adjectives

な Adjectives work similarly to い adjective conjugation IFF it’s in negative form, except we “introduce” a helper to give us that that we need to conjugate with as if it were an adjective in this case.

The result is that for something like げんき we add じゃない to make it negative. Then we modify the い in じゃない to make it じゃなかった. Similar to how it’s performed with い adjectives.

If it’s not a negative な adjective, the です is modified from ですー>でした。

Similar to how a verb is conjugated to past tense.

な Adjective Conjugation Example:

Dictionary Form: げんき

  • Present Affirmative: げんきです。
  • Present Negative: げんきじゃなです。
  • Past Affirmative: げんきでした
  • Past Negative: げんきじゃなかったです

Irregular Adjectives

Irregular Adjectives have their own very special rules, unique to the adjective.

The most notable is the いい irregular adjective.
A few other adjectives that share the ending of いい have this conjugation as well (such as かっこいい if I’m not mistaken…)

Irregular Adjective Conjugation Example:

Dictionary Form: いい

  • Present Affirmative: いいです。
  • Present Negative: よくなです。
  • Past Affirmative: よかったです。
  • Past Negative: よくなかったです。

 

Ubuntu 14.04 LTS PHP 5.5.9-1ubuntu4.19 OCI8 Install Guide

This guide is intended to work for systems running Ubuntu 14.04 LTS, and PHP 5.5.9-1ubuntu4.19.

Installing Oracle DB access is pretty tricky, there are even Github repositories set aside to provide up to date python scripts to do this.
But it’s just as possible to do this manually. So here we go…

Continue reading

に and へ particle Review

Today I reviewed two topics that I felt I was pretty fuzzy on and wanted to blog about for the sake of notekeeping.

The first is the: General Japanese Sentence Arrangement

Topic Frequency Time Goal Verb
私は よく 七時ごろ うちへ 帰ります。

(Page 93 of Genki 1: Second Edition Textbook)

The second is the use of へ particle and how it can be used where に has been used by myself as a default.

Review: に is used to refer to a goal of movement (location, time).
に is used for days, and time 時 but not for RELATIVE time like ごろ for example.

へ pronounced “e” (not “he”) is used to indicate the goal of movement similar to に.
However, へ can only replace に in use of ACTUAL goal of movement. So it CANNOT be used to indicate time like に can be used.

When in doubt, use に of course, but using へ can help improve fluency with the language.

(Pages 90-92 of Genki 1: Second Edition Textbook)

IBM’s Quantum Computer

Lately I’ve been experimenting with IBM’s Quantum Experience computer.

This video helps explain a lot about it, but the tutorials it offers is also great.

Based on the tutorials (Here: https://quantumexperience.ng.bluemix.net/qstage/#/tutorial ) I’ve read and the work I’ve done, as well as the very intense lacking of physics and math education on my part…

I’ve come to some ideas of how a Qubit works…
Continue reading

Game AI Final Assignment Report (Hirgana Hunter)

Game AI Final Assignment Report

“Hiragana Hunter” (demo prototype)

The game uses the following three game AI mechanics: A*, Path Smoothing, Agent Sensors. A* is used through a series of pre-defined nodes (the grass tiles actually), and performs a series of calculations based on A*, with the Manhattan Distance heuristic to calculate the shortest path to the target (the exit portal, the purple circle).

Once the A* final path is calculated, path smoothing is performed, albeit, in a somewhat lacking manner. The path smoothing will only perform smoothing on the final three tiles within a shift of movement from horizontal to vertical movement, and vice versa.

pathsmoothing_astar

Continue reading

Game AI Assignment 2 (A* Code Demo)

Game AI Assignment 2 (A* Code Demo)

Summary of Code

The software used for development was Unity 5.3.2f. It has scenes available to it, and can be thought of as “levels”. The code I wrote for the “first level” is a very simple “main menu” type scene. The scene displays a sprite image with text explaining controls to play the game. Pressing enter will enter the game, aka “level 2” aka the actual assignment. I thought that the best way to start would be to have a screen that explains the controls and features right off of the bat. The code for the main menu uses key down detection for the Enter key in order to progress to the other scene. Since this is a summary of the code, and not a comments of the code this will be very brief.

Continue reading

Oracle 10 to MSSQL 2012 Server

What you’ll need:

Continue reading

Apache and PHP for Raspberry Pi

(Source from: stewright.me)

Step 3 – Install Apache

Here’s where the fun begins. We’re going to start by installing Apache and some other packages. To do this its begin with entering:

sudo bash

This means we’re not having to type sudo each time we run a command. When you’ve done this, enter the following:

apt-get install apache2 apache2-doc apache2-utils

This shouldn’t take long. Once we’ve done that we’re going to install a few support packages including PHP. Once complete, enter the following command:

apt-get install libapache2-mod-php5 php5 php-pear php5-xcache

This too shouldn’t take too long. Follow up with installing the support package for database connectivity:

apt-get install php5-mysql

Now we’re going to install MySQL server. Do this by entering the following command:

apt-get install mysql-server mysql-client

As part of the installation, you’ll be asked to set a root password. Enter a password and then confirm it when prompted in the blue screen.

THEN!

sudo apt-get install libapache2-mod-php5
sudo nano /etc/apache2/apache2.conf

#At the end of the file add: (if it’s not there)

AddType application/x-httpd-php .php

© 2019 Biri.me

Theme by Anders NorénUp ↑