Looks like the twitter integration has worked pretty well.

posted by dharh 3:46 PM May 27th, 2009 via idt


Yes I'm still around. I got lazy and busy at the same time, so no updates since the last one till now. I was bored and have nothing to do till christmas stuff starts tomorrow so I started messing around on the web. Read an article "Twitter, Flickr, Facebook Make Blogs Look So 2004" aka "The Blog is Dead". And so it is! Though not for the reasons the article explains, mine is dead right now... well... I already mentioned that. Anyway, I made a twitter account and hopefully January I will force myself to add my twitter feed to my feed eater here at IDT.

Don't hold your breath though. I wouldn't want any blood on my hands.


posted by dharh 6:32 PM Dec 24th, 2008 via idt



posted by dharh 9:01 AM May 13th, 2008 via idt


I've moved the site over to a new host. LFC Hosting. I've been using them a while for other stuff and have been happy with them. There will be a few issues here and there, but I'll get the kinks worked out soon.

posted by dharh 6:33 PM Apr 9th, 2008 via idt



A while ago I talked about a possible project I wanted to try based on a site I saw some years ago. And so here it is.

It is a speech profiler which at the moment allows someone to get word counts, sentence counts, and see visually sentence density. In addition, one can search for certain words and phrases to see occurrence density within that visual representation. Finally, one can compare those numbers and visual representations between multiple speeches.

I plan to at some point add some additional statistic features such as unique word counts, comparisons, and other things as I think of them or get suggestions.


posted by dharh 6:03 PM Mar 18th, 2008 via idt


As you can see the Java implementation of Step 1 of 15 Exercises for Learning a new Programming Language was more complicated than the C# implementation. This was largely due to one factor. You can't poll whether someone is typing from the console in Java.

The second problem is that you can't use a KeyEvent handler in the console, which would the second easiest solution to attempt.

Finally a third problem is that by using an event handler you essentially need to use threading so that the loop doesn't interfere with the handler and you are able to interrupt properly.

If there are better solutions I'd be very interested to see them.

package learn2Java1; import java.awt.BorderLayout; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JFrame; import javax.swing.JTextArea; public class Program extends JFrame implements KeyListener { private JTextArea displayArea; private static final long serialVersionUID = 1; public static void main(String[] args) { javax.swing.SwingUtilities.invokeLater( new Runnable( ){ public void run( ) { createAndShowGUI( ); } }); } public Program( String name ) { super( name ); } private static void createAndShowGUI( ) { Program frame = new Program( "Press ESC to exit program." ); frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); frame.addComponentsToPane( ); frame.pack( ); frame.setVisible( true ); Thread t = new Thread( new MessageLoop( frame ) ); t.start( ); } private void addComponentsToPane( ) { displayArea = new JTextArea( 0 ); displayArea.setEditable( false ); displayArea.addKeyListener( this ); getContentPane( ).add( displayArea, BorderLayout.CENTER ); } public void keyPressed(KeyEvent ke) { checkKey( ke, "KeyPressed: " ); } public void keyReleased(KeyEvent ke) { checkKey( ke, "KeyReleased: " ); } public void keyTyped(KeyEvent ke) { checkKey( ke, "KeyTyped: " ); } private void checkKey( KeyEvent ke, String message ) { System.out.println( message + ke.getKeyCode() ); if ( ke.getID() != KeyEvent.KEY_TYPED && ke.getKeyCode() == KeyEvent.VK_ESCAPE ) System.exit( 0 ); } public void updateArea( String text ) { displayArea.setText( text ); } private static class MessageLoop implements Runnable { Program messageSpace; public MessageLoop( Program thisFrame ) { messageSpace = thisFrame; } public void run( ) { for ( int i = 0; ; i++ ) { messageSpace.updateArea( i + " " ); try { Thread.sleep( 250 ); } catch ( InterruptedException ie ) { } } } } }

posted by dharh 7:15 PM Feb 10th, 2008 via idt


« Previous 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Next »

2024: 11 1
2023: 4 2 1
2022: 5 3
2011: 5 3 1
2010: 12 9 7 1
2009: 12 11 8 5
2008: 12 5 4 3 2 1
2007: 12 11 10 9 8 7 6 5 4 3 2 1
2006: 12 11 10 9 8 7 6 5 4 3 2 1
2005: 12 10 7 6
2004: 10 9 6 5 4 3 2 1