Compete - The New Alexa?

February 4, 2008 | 2 Comments

I have to say the site name “Compete” is far more engaging and obvious as a name… As an admitted Alexa-holic, a new site that compares sites is exciting to me. It is very similar to Alexa, though they claim better data sources.

Tags: , , , , ,

Related:

Simple JSP JDBC Example

January 29, 2008 | Leave a Comment

I learned to program on Java, but have done little to exercise those skills in the last six years, preferring to leverage PHPs simplicity whenever possible. So... when I had a need to put together a simple JSP script that queried Oracle, I found myself scouring for a truly simple example to start from. Here's the example I put together:

JAVA:
  1. <%@ page import="java.sql.*" %>
  2. <%
  3. try
  4. {
  5.     //this is how you might get a POST or GET variable from the request to use
  6.     //String user_id = request.getParameter("some_var");
  7.  
  8.     Connection  conn = DriverManager.getConnection("jdbc:oracle:thin:@HOSTNAME:PORT:SID","USERNAME","PASSWORD");
  9.     Statement stmt = conn.createStatement();
  10.     ResultSet rset = stmt.executeQuery("SELECT sysdate FROM dual'");
  11.     if (rset.next())
  12.     {
  13.         out.println(rset.getString(1));
  14.     }
  15.     else
  16.     {
  17.         out.println("No records found");
  18.     }
  19.     rset.close();
  20.     stmt.close();
  21. }
  22. catch (SQLException e) {
  23.     out.println("Exception");
  24. }
  25. %>

Certainly for your own purposes you would need to write a lot more code than this. Yet, if you seek a simple example just to gain your bearings, this should do it.

Tags: , , , , , , , , , , ,

Related:

Announcing Sun MySQL!

January 16, 2008 | Leave a Comment

Sun has officially acquired MySQL! As a huge fan and supporter of MySQL, I have personal commitment and obvious concerns about this. In my experience most things Sun does are bloated and slow to develop (Solaris, Java, Open Office). Yet, I remain hopeful because they do seem to respect and work positively with open source initiatives.

The most positive things can come out of this are improved marketing, better name recognition, and funds injected into a project. Maybe they can compete with Oracle now? Hey, maybe Sun will stop using Berkeley DB to back most it's existing products. I'll admit that upon first reading this my heart skipped a few beats, but as the pains subsided I think its all going to be OK.

Tags: , , , , , , , ,

Related:

Site Uptime Monitoring

December 12, 2007 | 1 Comment

SiteUptimeI highly recommend SiteUptime.com. It's been repeatedly helpful for me knowing when my site is having difficulty. The free version lets you have one monitor that checks every 30 minutes. Not great for super critical things, but perfect for a simple blog. You can even have it SMS you when there is an alert!

Tags: , , , , ,

Related:

Mac OS X Start Up Keys

November 28, 2007 | 12 Comments

I often search around trying to find the various ways to boot OSX in a special sort of way. I've especially needed these sort of things lately, as I had a brand new hard drive die on me.

You can hold any of the following to access any of these special boot modes:

C - Boot from the internal optical drive (CD or DVD)
D - Boot the diagnostic volume of the install DVD
N - Start from the Network (NetBoot)
R - Force PowerBook screen reset
T - Boot into Firewire target disk mode
X - Reset startup disk selection and boot into Mac OS X Server
Shift - Boot into "Safe Boot" mode, which runs Disk First Aid. A reboot will be required afterward.
Option - Boot into "Startup Manager"
Mouse Button - Eject (internal) removable media
Command-S - Boot into Single User Mode (command line)
Command-V - Boot using "Verbose" mode (shows all kernel and startup console messages)
Command-Option-Shift-Delete - Bypass internal hard drive on boot and seek a different startup volume (such as a CD or external disk)
Command-Option-P-R - Reset Parameter RAM (PRAM) and non-volatile RAM (NVRAM)
Command-Option-O-F - Boot into "Open Firmware"

Rumor has it, firmware password protection can be removed by intalling or removing a stick of RAM, then zapping the PRAM three times in a row.

These bootup options were compiled from Apple and this blog.

apple, boot, boot cd, bootup, command, diagnostic, firmware, mac, macos, net boot, open firmware, option, os x, osx, parameter ram, pram, ram, single user, startup, target disk, verbose

Tags: , , , , , , , , , , , , , , , , , , , ,

Related:

Fiddler - Must Have for IE Development

October 9, 2007 | 3 Comments

If you do any web development for Internet Explorer, Fiddler is a must have application. Basically this is semi-equivalent to Firebug's "Net tab". If you have been using IE Developer Toolbar, this was a huge missing piece that can now be filled in.

Explanation of what it is from their site:

Fiddler is a Web Debugging Proxy which logs all HTTP(S) traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP(S) traffic, set breakpoints, and "fiddle" with incoming or outgoing data. Fiddler includes a powerful event-based scripting subsystem, and can be extended using any .NET language.

Fiddler is freeware and can debug traffic from virtually any application, including Internet Explorer, Mozilla Firefox, Opera, and thousands more.

You should also check out the video tutorial.

fiddler, fiddler2, firebug, ie, internet explorer, web, web development

Tags: , , , , , ,

Related:

Common Craft - Modern Tech Topics in Plain English

September 19, 2007 | 3 Comments

Common Craft has built a series of presentations explaining modern tech topics in "Plain English". What's most interesting about their presentations is that they use a classic method of stop motion animation to explain these things. This counterintuitive approach is done entertainingly with paper cut-outs.

I think the Google Docs video I included above is their best, but if you were entertained by that, check out the older ones:


RSS in Plain English


Wikis in Plain English


Social Bookmarking in Plain English

common craft, commoncraft, delicious, google docs, plain english, presentations, rss, social bookmarking, stop motion, video, wiki, wikis

Tags: , , , , , , , , , , ,

Related:

Next Page »