Site Sponsors:
Installing MySQL Server & Workbench 
In a previous article we praised the innovative way Red Had allows us to rapidly install things like MySQL.

For the new learner however, note that at the time of this writing that only the MySQL Client (mysql-client) toolset will be installed.

Service, Please

If you are looking to do some R&D on your local host (we use a Virtual Box), then one will want to also install the MySQL Server tools (mysql-server), as well:

yum install mysql-server

Thereafter (*) we can start the locus via:

service mysqld start

As well as subsequently begin the MySQL console interface simply by typing
at the console interface.

MySQL Workbench

For those of us who absolutely love Microsoft SQL Server's SQL Management Studio (SSMS), note that MySQL has a must-have graphical tool set, as well. Formerly known as "MySQL Administrator", we now call it the "Workbench."

No matter what we call it however, the Community Edition of the GUI is the very next item most R&D folks will want to download.

Again at the time of this writing however, there is often an installation caveat. Before installation, try
yum install ... x86_64.rpm
if you run into problems whilst doing something like
yum install mysql-workbench-community-6.1.7-1.el6.x86_64.rpm
Once installed, merely enter
at the console to get things rolling.

Google Fodder

Installing the MySQL Server will resolve error message such as:
Error: Package: mysql-workbench-community-6.1.7-1.el6.x86_64 (/mysql-workbench-community-6.1.7-1.el6.x86_64) Requires:

[ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

-as well as:
mysqld: unrecognized service

or someday perhaps even:
mysqld: unrecognised service  ;-)

Ubuntu & Elsewhere

(*) Note that Ubuntu learns will want to use
sudo apd-get install mysql-server
sudo service mysqld start
rather than
yum ...
. Otherwise, everything else in this post will work the same.

[ add comment ] ( 1068 views )   |  permalink  |  related link
Source Code as a Resource 

Loading Lately?

When it comes to programming, we all know that the term "resource" can mean just about anything. For the purpose of this post however, the term is herein being used to refer to any local file outside of those executable classes we need to run our application.

Simple Concepts

From Images to Resource Bundles, Java has three ways to locate & load classpath-relative resources: Class, Container, and System.

When it came time for me to include a stand-alone code template however, none of the tried-and-true resource loading techniques did the job. Why? Because rather than allowing the IDE to include all of the source code (so as to use the Class or Thread loader strategy for example), I simply wanted a way to resource a single custom source-code resource; A default template; A simple, single file. --One that that I desperately needed to include so as to better create a soon-to-be-released ENJO-Generaiton Tool.

Better than Television

So - bored almost to tears in the evening - while marooned at a client site last week I created a new tool. One designed to help me 'resource that single file.

Packing up the encoder & decoder API into a GUI Tool (yes, I was THAT Bored!) the overly ambitions project name I came up with so as to better share the locus with you is "OmniLoader."

Circulating as YASFP (Yet Another SourceForge Project) please allow me to share both the tool, as well as the simple technique with you now. Designed to generate a class that can hex-encode + embed ANY resource file, depending upon your requirement the technique could easily be expanded to resource-share arrays of bytes, class-named images, sounds, certificates, as well as any other resource we might realistically want to shove into a hex-dump.

Indeed, depending upon your need for stark efficiency, let me know if you would prefer a Base64 encode / decode option: The garbage-way American television is going these days, surely the next time I am marooned in a hotel room with only Cable as a companion you will probably get your wish. ... I will probably even write it twice.

Remember: For any professional, the Journey HAS ALWAYS BEEN the Destination, =)


[ add comment ] ( 707 views )   |  permalink  |  related link

<<First <Back | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | Next> Last>>