Oracle SQL result

Very good example(s) for connecting to an Oracle DB, submitting a statement, and printing the results.

http://www.java2s.com/Code/Java/Database-SQL-JDBC/DemoResultSetOracle.htm

Don’t know what this next one is but it looks important :)

http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/refcur/index.html

Leave the first comment

Vi Search and Replace

:%s/search_string/replacement_string/g

‘g’ stands for global, not sure what other parameters you can place there.

Leave the first comment

Best IDE for JS development

www.aptana.org

Visual studio 2008

Komodo

jslibs

Leave the first comment

Best two sentences I’ve read in awhile

http://mattgemmell.com/2009/08/02/ten-and-counting#more-1262

It’s a process of constantly thinking in a very unnatural way: second-guessing your every thought and conclusion and emotional response, in order to maximise your ability to recover. It takes a very long time, but it works. Cognitive/behavioural therapy is good science, and with sustained effort it does indeed perform its function.

Leave the first comment

Work Index

ELN_index_september_09112009Interesting article on the top 100 skills desired in the work place. Here. I did a quick count and I’m familiar with or have a reasonable amount of experience with 28/100, more at the high end. I guess I’m doing something right.

  • php
  • graphic design
  • mysql
  • html
  • css
  • excel
  • wordpress
  • javascript
  • photoshop
  • web content
  • SEO
  • Web Design
  • Joomla
  • Blogs
  • xhtml
  • drupal
  • xml
  • flex – kind of
  • word processing
  • Database
  • social networking
  • java
  • facebook
  • jquery
  • word
  • google adwords
  • linux
  • python
Leave the first comment

To Print

I’m just putting this up here in order to print because… without OpenOffice installed, I don’t think I have a program that can handle picture + text. Funny that I’m using a blog as a means to print… oh how the world of software has evolved.

I’m taking this from the Lifehack DIY article found here.

supplies2

I estimate the whole project took me half a day and cost me something like $60 for an 8′ x 4′ area – 28 photo holders. The majority of both the time and cost was for the wood photo boards, something that I now realize were really optional. Here is what you’ll need for materials:
picture hanging wire (enough for each span to cover)
s-hooks – 1″ or 1.5″ open (2 per photo you want to hang, 1 if not using wood photo boards)
Hunt bulldog clips (1 per photo you want to hang)
turnbuckles (1 per span of wire; make sure one side is a hook not an eye)
splicing sleeves (2 per span of wire)
screw eyes (2 per span of wire)
Thumb tacks (1 per photo to hang, only needed is if using wood photo boards)
Some thin slats of wood cut a bit larger than the photos you want to display (1 per photo to hang)
The tools you will need:
Drill and small drill bit
Pliers
Saw (to cut the wood photo holders)
Sandpaper (to sand the wood photo holders)
Paint brush and stain (if you want to finish the wood photo holders)
Here are the super simple steps to do it:
Determine where you would like to string your wire(s) across and measure up from the floor so that you can drill pilot holes for the at the same locations. Drill holes. (HINT: when considering the hight of your photo rows, don’t forget to leave room for various photo orientations and sizes if you’re into that sort of thing)
Screw in the screw eyes by hand. You may need to use sheet rock anchors if you do not hit a stud
Cut the wire into lengths that are just a bit longer than the span they will cross.
Thread one end of the wire though one side of the screw eyes that are in the wall, double them over as show at right, and clamp them together using the splicing sleeves.
Attach the other end of the wire to a turnbuckle using the same method making sure that the turnbuckle has plenty of space to screw the two sides toward each other. Tighten the turnbuckle to just before it is to tight and then hook it to the other screw eye.
Simple shortcut: Just hang your photos with an s-hooks with a bulldog clip though it for that darkroom look, or continue on for the wooden photo boards.
Ok, so you like the photo board idea. It really isn’t that hard but it more than triples (or more depending on the number you want to make) the work you will be doing. First thing you will do is cut your boards down to the sizes (and orientations you want) and sand the rough edges.
Now its time to drill some holes for the s-hooks. The smaller the s-hook the closer you will have to drill your holes to the edge of the boards. Also be sure to accommodate the gauge of the s-hook.
OPTIONAL: you may now stain or paint the boards as you see fit.
Stick a bulldog clip to the photo board with a thumb tack (hint: silver matches well).
Slip the s-hooks into the holes and hang your boards. Clip photos to them, and you’re done.

I estimate the whole project took me half a day and cost me something like $60 for an 8′ x 4′ area – 28 photo holders. The majority of both the time and cost was for the wood photo boards, something that I now realize were really optional. Here is what you’ll need for materials:

picture hanging wire (enough for each span to cover)

s-hooks – 1″ or 1.5″ open (2 per photo you want to hang, 1 if not using wood photo boards)

Hunt bulldog clips (1 per photo you want to hang)

turnbuckles (1 per span of wire; make sure one side is a hook not an eye)

splicing sleeves (2 per span of wire)

screw eyes (2 per span of wire)

Thumb tacks (1 per photo to hang, only needed is if using wood photo boards)

Some thin slats of wood cut a bit larger than the photos you want to display (1 per photo to hang)

The tools you will need:

Drill and small drill bit

Pliers

Saw (to cut the wood photo holders)

Sandpaper (to sand the wood photo holders)

Paint brush and stain (if you want to finish the wood photo holders)

Here are the super simple steps to do it:

Determine where you would like to string your wire(s) across and measure up from the floor so that you can drill pilot holes for the at the same locations. Drill holes. (HINT: when considering the hight of your photo rows, don’t forget to leave room for various photo orientations and sizes if you’re into that sort of thing)

Screw in the screw eyes by hand. You may need to use sheet rock anchors if you do not hit a stud

Cut the wire into lengths that are just a bit longer than the span they will cross.

Thread one end of the wire though one side of the screw eyes that are in the wall, double them over as show at right, and clamp them together using the splicing sleeves.

Attach the other end of the wire to a turnbuckle using the same method making sure that the turnbuckle has plenty of space to screw the two sides toward each other. Tighten the turnbuckle to just before it is to tight and then hook it to the other screw eye.

Simple shortcut: Just hang your photos with an s-hooks with a bulldog clip though it for that darkroom look, or continue on for the wooden photo boards.

Ok, so you like the photo board idea. It really isn’t that hard but it more than triples (or more depending on the number you want to make) the work you will be doing. First thing you will do is cut your boards down to the sizes (and orientations you want) and sand the rough edges.

Now its time to drill some holes for the s-hooks. The smaller the s-hook the closer you will have to drill your holes to the edge of the boards. Also be sure to accommodate the gauge of the s-hook.

OPTIONAL: you may now stain or paint the boards as you see fit.

Stick a bulldog clip to the photo board with a thumb tack (hint: silver matches well).

Slip the s-hooks into the holes and hang your boards. Clip photos to them, and you’re done.

Leave the first comment

Delete white space from text file

Linux command:

cat filename | tr -d [:space:]

This removes the whitespace and displays the results as standard out, you can then add a little bit to the command to save it to a file, like so:

cat filename | tr -d [:space:] >> fileoutname.txt

Leave the first comment

How to win

“Google is like Apple in this way. It starts by taking over the premium end of a market.” – John Gruber over at Daring Fireball

Win the rich nerds, win it all. It’s working for Google/Apple.

One wonders, what if Google & Apple… were one.

Leave the first comment

HTML 5 – Drag n’ drop

dragstart
A drag has been initiated, with the dragged element as the event target.
drag
The mouse has moved, with the dragged element as the event target.
dragenter
The dragged element has been moved into a drop listener, with the drop listener element as the event target.
dragover
The dragged element has been moved over a drop listener, with the drop listener element as the event target. Since the default behavior is to cancel drops, returning false or calling preventDefault() in the event handler indicates that a drop is allowed here.
dragleave
The dragged element has been moved out of a drop listener, with the drop listener element as the event target.
drop
The dragged element has been successfully dropped on a drop listener, with the drop listener element as the event target.
dragend
A drag has been ended, successfully or not, with the dragged element as the event target.
Leave the first comment

Crazy Storage

BackBlaze Storage Server

Props for sharing all of the great information, the only problem I have… is now I want to build one.

Perhaps on a miniature scale, 67 terabytes seems a bit excessive.

Leave the first comment