Remote Coder Blog

A brief respite from my coding closet

Relevant Quote

February16

“An armed republic submits less easily to the rule of one of its citizens than a republic armed by foreign forces. Rome and Sparta were for many centuries well armed and free. The Swiss are well armed and enjoy great freedom. Among other evils caused by being disarmed, it renders you contemptible. It is not reasonable to suppose that one who is armed will obey willingly one who is unarmed; or that any unarmed man will remain safe among armed servants.” – Niccolo Machiavelli, “The Prince” (1532)”

posted under Politics/Current Events | Comments Off

Wow, look at all these cobwebs

January12

It’s amazing what happens when you don’t spend any time writing new articles.

-Absolutely nothing!

I am on my last year of my computer programming degree and my class loads have lightened up a bit. Along the way I’ve purchased a new house with my wife, had a meager 3 week Christmas break (not nearly long enough), and managed to acquire 2 internships doing web development.

Those are just a few of the things I’ve done.

Upon reflection of where I started this journey and where I am now I’ve learned that what I want to do MORE THAN ANYTHING is web development. I love designing websites, helping people put their brand out, and along the way learning more about myself, and my capabilities. This doesn’t mean I don’t like application development, but certainly with web design/development, I have more creative freedom and it’s that freedom I enjoy most.

My computer programming degree hasn’t covered (in my opinion) 2/3rds of what I believe I need to know to become a good web developer as far as web technologies go. I’ve covered html, javascript, xml, php and mysql. Those languages are a good basis for most sites, but in reviewing what other web developers out there are covering (thinks like JSON, JQuery, MooTools, CSS) I think I am not as prepared to handle all of the requests that might come to me.

So what can I do?

My wife was amazing in that for Christmas she got me a copy of the Smashing Book which has been a good start.

The Smashing Book is chocked full of tips and ideas about good site design and characteristics that I believe will help me be a better Web Developer. But while learning this, I have this deep sense that I need to learn more.

So, this is where you come in (if you even read this): I need to find out what current market trends are in web development and determine if those tools/skills are something I can acquire by reading, or if I should continue my education and find a school geared for Web Development.

I am so fried on education that I want to suppress the college route for awhile and see what I can do before that. I realize that this market is BLEAK, but certainly some one some where can use a developer (let alone pay one)

This is what I want to do for the rest of my life, so the question is, how to insure that happens.

:)

Java Timer Applet

November17

I am not certain whether or not it’s taboo to post your code on the internet. There are several sites out there that do this, and I know without some code examples every now and then to look at, I might never understand certain elements.

It was hard to find any thing that closely related to what I’m about to post here. Basically, I was looking for some example that would illustrate for me how to use the Javax.swing.timer method.

I could understand that I needed to create the method by using:
timer = new Timer(1000, new TimerListener); which initializes a variable called timer as a new Timer method, counting by seconds, and called using the TimerListener class (inside class I had to create).

The reason why I was trying to create this java class was so I could imbed it into an applet for use on an html page.

This is the html code I used to call the applet:
<.html>

<.head><.title>Timer Applet<./timer><./head>
<.body><.applet code="timer.class" width="300" height="100"><./applet><./body><./html>
<./code>

Basically, the applet tag calls the java class and puts it in a predetermined sized window. When you load the html page in your browser (with Java enabled) it will call the java class, and run it.

So my Java code is as follows:
//Name: David Nick
//Date: 11.16.2009
//Purpose: To create a Java Timer Applet

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class timer extends JApplet
{

private JTextField tLabel;
private JPanel tPanel;
private JPanel bPanel;
private JButton startBtn;
private JButton stopBtn;
private Timer timer;
private int x = 0;

public void init()
{
timer = new Timer(1000, new TimerListener());
getContentPane().setBackground(Color.black);

//building the panels
buildTpanel();
buildBpanel();

//add panels to content pane
add(tPanel);
add(bPanel);

//setting the panel layout
setLayout(new GridLayout(2, 1));
}

private void buildTpanel()
{
//create the panel
tPanel = new JPanel();

//create Textfield that goes into the tPanel
tLabel = new JTextField("000000");

//add textfield to panel
tPanel.add(tLabel);
}

private void buildBpanel()
{
//create the panel
bPanel = new JPanel();

//create the buttons
startBtn = new JButton("Start");
stopBtn = new JButton("Stop");

//create the button listeners
startBtn.addActionListener(new StartListener());
stopBtn.addActionListener(new StopListener());

//add buttons to the panel
bPanel.add(startBtn);
bPanel.add(stopBtn);
}

//creating a listener for the start button

private class StartListener implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
timer.start();
}
}

//creating a listener for the stop button

private class StopListener implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
timer.stop();
}
}

//creating a timer listener
private class TimerListener implements ActionListener
{
public void actionPerformed(ActionEvent e)
{
x++;
tLabel.setText("000000"+(x));
}
}
}

One of the difficulties for me was nailing down how to increment the counter once I hit the start button. The Timer method has only timer.start(); and timer.stop();. There is no timer.reset(); method. It is in poor taste to try and force the timer to set itself to all zeros because in clicking start it continues where you hit stop.

And so there you have the Java Timer Method used in an HTML applet.

posted under HTML, XHTML, CSS, AJAX, Java, Programming, School, Source Code | Comments Off

August is here

August11

W00t w00t!

So many things have happened since my June post. July didn’t see a single day that my schedule was open and I was relaxing.

I spent most of my summer training in my 2 martial arts, my SkyWarn spotting was slim to none (calm summer, not a lot of severe weather), and then the first week of August I finally took a trip out of town.

It was nice to get away from school, and to focus time on family, and other diversions.

That will all end of course at the end of the month when school starts.

I am hoping this means more time writing my thoughts as I progress through another semester of college. 3 more of them to go before I am done, and I can start looking for work.

I miss work!

posted under Blogging, General Writing, Lifestyle, School, SkyWarn | Comments Off

Dear Kindle/(Amazon),

June10

From Kindle regarding Native PDF Support for the Kindle 2 (Kindle DX now ships with it)

Hello,

I’m sorry, but at this time, we don’t have specific information about the software update for native PDF support on Kindle 2. We appreciate your patience and understanding in this matter.

However, I’ve treated your concern as a feedback and forwarded your comments to our Kindle team. It is always important for us to hear how customers react to all aspects. Your valuable feedback will help us to improve the selection and service we provide, and we’re glad you took time to write to us.

If you have any further queries or need any assistance, you can reach our Kindle Specialists directly by calling 1-866-321-8851 or using the Contact Us option in the right-hand column of our Kindle Support pages at:

www.amazon.com/kindlesupport

Thanks for your interest in Kindle.

Don’t get me wrong, I love my Kindle 2. But we’re talking a minor software upgrade pushed out to all Kindles with the same/similar code that the DX now has. I don’t see the issue here other than Amazon wanting Kindle 2/Kindle 1 owners to upgrade to a DX (which for me, won’t happen).

posted under Kindle | Comments Off
« Older Entries