Friday, 31 January 2014

Want to waste some time?

So today I was browsing the interwebs and I found a few awesome links, that I think everyone should take a look at.

They are not so much read based websites, but rather something to give you visual stimulation.

I think everyone should spend some time looking at them. They are really awesome, and if you are into web development I think you should also take some time and look at the code.


I really like fish, thus one of the sites that really got my attention was  an Aquarium it has a really awesome feeling to it, where you can control things like how many fish there are, I must have spent a good 5 – 10 Minutes watching the fish go by. Something I thought you may find interesting about Fish and watching fish.
Watching fish is thought to stimulate serotonin neurotransmitters in the brain leading to increasing production of endorphins. Endorphins are our body's natural ‘feel good' hormones and produce a feeling of happiness. These hormones also reduce anxiety, having a calming effect on the body and a range of other health benefits such as lowering blood pressure, and reducing hyperactivity.

Hope you enjoy.

#bearMan

Wednesday, 29 January 2014

Learning - I think every Linux user should know these three commands

Background

I was doing some downloading on a remote linux machine that I did not have a GUI for, I was only able to access the system through SSH. The problem with this was that I did not want to risk the download stopping if my connection to the server was lost. So my first problem, was learning screen.
After that I ran into another issue, how was I going to copy this file from the remote server to my local machine.

The Process

My First problem was how do I get a "extra" screen or terminal. The Solution was quite literally screen.
There are a number of really good tutorials out there, that can help one get to become a master with this application. I don't really want to become a master, but I wanted to know how to use this.
So firstly I installed it using yum.
yum install screen
wow ok, that was deceptively simple.
How do I use this,
screen -?
Cool
we want to create a new screen/ R seems to be ok.
screen -R
ok well, looks like nothing has changed. Lets test.
Opens another SSH Session and run
screen -list
Ok cool, there was a result and looks good.

Awesome
So lets go, download that file. (Making sure I was in the correct SSH Session, I closed the session that I used to check.) wget my file, the command is pretty simple wget -O '<From>' <to>
Not to sure if this was the best way to do this, but was the way I used and seemed to work.

Downloaded the file, completed, wanted to make sure the md5 was the same, md5sum the file. Once that was completed I got an output of the md5 and the file name.

Next problem, I need to get that file from the server. SCP to the rescue! Quick google search provided me with a solution, scp the file from server to my machine.

No problems, scp <user>@<computer>:<file> <toFile>.

Done!

To Long, Short Version

Basically the commands I think everyone should know are how to scp from one machine to another, md5 a file and screen.

scp

scp <user>@<computer>:<file> <toFile>

md5

md5sum <file>

screen

screen -R, either creates or resumes a screen session.
while in screen
ctrl + a
ctrl + d
"Closes" screen and resumes with normal terminal.

#bearMan saving mySelf.

Friday, 24 January 2014

Windows: Terminal

Customizing your Windows Command Prompt


Hate it when you go into terminal and you have this?

Or worse of f


How to make your cmd a little more “customized” and get your Friends to go wow.

All you need to do is type

Prompt  $A
Or My Favorite

Prompt $G

$H is also nice

Something easy to do J

Command
Affect
$A
& (Ampersand)
$B
| (pipe)
$C
( (Left parenthesis)
$D
Current date
$E
Escape code (ASCII code 27)
$F
) (Right parenthesis)
$G
> (greater-than sign)
$H
Backspace (erases previous character)
$L
< (less-than sign)
$N
Current drive
$P
Current drive and path
$Q
#NAME?
$S
  (space)
$T
Current Time
$V
Windows version number
$_
Carriage return and linefeed
$$
$ (dollar sign)


#bearMan

Wednesday, 22 January 2014

Oracle XEr2 Enable HR Schema

Oracle XEr2 Enable HR Schema

So now that we have the XE installed lets enable your HR Schema.

Log into the sqlplus and execute this:

Alter user hr identified by hr account unlock;

Then you can log into the Schema

#bearMan

Friday, 17 January 2014

Oracle XEr2 Check Database

Oracle XE SQLPLUS

Now that we have out Oracle XEr2 Database Installed Lets use our Main “DBA” tool, sqlplus.

What you can do is run Command Prompt or Terminal

Type:
Sqlplus / as sysdba

You should log in. If you don’t

You will need to go into the File the contains SQLPLUS.
Mine was:
C:\oraclexe\app\oracle\product\11.2.0\server\bin

Cd C:\oraclexe\app\oracle\product\11.2.0\server\bin

Once there you can run that command.


Run
Selext * from dual;

If you get this command it means your database is running.

Have fun selecting J

#bearMan

Wednesday, 15 January 2014

Windows: Setting Up Oracle XEr2 Windows 8.1

Step by step Guide to install Oracle XE on Windows 8.


I Will be assuming you have the installer and have Extracted it.

Note this is a fairly Standard Install,

Step 1:
Run the install, it will extract, decompress the install Files and then prepare for the install




Step 2:
Welcome Page, Click Next

Step 3:
Accept License Agreement


Browse where you want to install Oracle XE.
If you want you can change the install Path.

Step 4:
Enter SYSDBA password


I usually Make this “sys” as I don’t use the Database for anything other than Dev.

Click Next

Step 5:
Summary and Click Install.


The Biggest things to take note of are the ports:
Port for 'Oracle Database Listener': 1521
Port for 'Oracle Services for Microsoft Transaction Server': 2030
Port for 'Oracle HTTP Listener': 8080

The two Most Important are Port 1521 and 8080.

Step 6:
Installing Process:

Note there may be errors if they are:

Or


You can ignore them. They will not affect any part of the database.        

Well Done, the database will be configuring itself. (This may take a while)



Enjoy your new install of Oracle XE

#bearMan

Monday, 13 January 2014

OIM Design Console: java.lang.NoClassDefFoundError: javax/ejb/CreateException

java.lang.NoClassDefFoundError: javax/ejb/CreateException


Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/CreateException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
        at java.lang.Class.getDeclaredMethod(Class.java:2002)
        at java.awt.Component.isCoalesceEventsOverriden(Component.java:6190)
        at java.awt.Component.access$500(Component.java:188)
        at java.awt.Component$3.run(Component.java:6144)
        at java.awt.Component$3.run(Component.java:6142)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Component.checkCoalescing(Component.java:6141)
        at java.awt.Component.<init>(Component.java:6110)
        at java.awt.Container.<init>(Container.java:276)
        at java.awt.Window.<init>(Window.java:534)
        at java.awt.Frame.<init>(Frame.java:420)
        at java.awt.Frame.<init>(Frame.java:385)
        at javax.swing.JFrame.<init>(JFrame.java:180)
        at com.thortech.xl.gui.base.tcFrame.<init>(tcFrame.java:34)
        at com.thortech.xl.client.base.tcAppWindow.<init>(tcAppWindow.java:104)
        at com.thortech.xl.client.base.tcAppWindow.main(tcAppWindow.java:173)
Caused by: java.lang.ClassNotFoundException: javax.ejb.CreateException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 18 more

This Error is caused by not having the “wlfullclient.jar” file in order to generate this, you need to cd to
$WL_HOME/server/lib
And run:
java -jar wljarbuilder.jar

This takes a while depending on how good the server is, but also outputs a lot, so don’t be afraid of this. Copy that file to your OIM Home /designconsole/ext
If you need to, you must FTP that to your local machine.

#bearMan

Friday, 10 January 2014

How To: Install Multiple JDevelopers on One Machine

Having multiple JDevelopers

How To Make the Most of your computer

As a Developer we are often required to work with multiple JDeveloper versions at any one time.

Installing them may be tricky if you are doing it for the first time.

You can do this by creating a new MiddleWare home

I will be demonstrating some of the things I do when I am installing a new JDev Version.

I will be working with JDeveloper 11g (11.1.2.4.0)

Step 1:

Step 2:
As you can see I have two other versions, 11.1.1.6 and 11.1.1.7
I create a new Middleware home 11124 (11.1.2.4)

That is the trickiest step in the process.

Step 3:

Using the typical Install.

Step 4:

If the Installer did not find a Java Version, If you have Java, you will need to find the Home:
Mine was :
C:\Program Files\Java\jdk1.7.0_45
Otherwise you can get it from here:
                http://java.com/en/download/index.jsp

Step 5:
Notice the Path:
Middleware11124

Step 6:

Step 7: 
The Install and completion.


Congratulations you are done!

#bearMan

Wednesday, 8 January 2014

JDeveloper: Making the most of your IDE, Database Date

JDeveloper Database Date

Using JDeveloper and making a user Friendly date


When I install JDeveloper or SQLDeveloper the first thing I do it I change how the dates are displayed.

You need to got o Tools -> Preferences


Click on Database -> NLS


Change your Date Format to:
DD-MON-RRRR HH.MI.SS AM

This will display the dates like:
01-OCT-2013 12.00.00 AM

#bearMan

Monday, 6 January 2014

Welcome to 2014

Welcome to 2014

Hope you all have a wonderful time.

Here are a few Images I liked.
http://decordots.com/wp-content/uploads/2014/01/2014-new-beginnings.jpg

#bearMan welcomes 2014