Random Thoughts

My thoughts about life, coding, science, technology and other stuff

Politicians making changes in Wikipedia

While many of the changes discovered by the Lowell Sun were done to enhance political entries, not all were positive. Statements traced to a House IP address included entries that U.S. Rep. Eric Cantor, R-Va., “smells of cow dung” and that Senate Majority Leader Bill Frist, R-Tenn., is “ineffective.”

read more | digg story

Advertisements

January 30, 2006 Posted by | Technology | Leave a comment

The reason why your computer doesn’t always work

Ever wonder why your system is slow all of a sudden? Or it no longer boots? Look no further. All you answers are here.

“These are what cause everything and anything on a computer to go wrong. They are everywhere technology exists, constantly attempting to meddle in your technological affairs.”

read more | digg story

January 27, 2006 Posted by | Technology | Leave a comment

New gravity theory dispenses with dark matter

A modified theory of gravity that incorporates quantum effects can explain a trio of puzzling astronomical observations including the wayward motion of the Pioneer spacecraft in our solar system, apparently, and all withoug the need to invoke dark matter. It makes a lot of sense.

read more | digg story

January 25, 2006 Posted by | Science | Leave a comment

New Detection devices to Seek Extraterrestrial life

New Detection devices are in the works for rooting out extraterrestrial life…

read more | digg story

January 25, 2006 Posted by | Science | Leave a comment

Bathroom faucets change color of water, based on temperature

Germany company Hansa has come out with these futuristic temperature sensitive bathroom fixtures that illuminate the temperature of your water with colored light. LEDs lining the walls of the spigot, illuminating the water in different colors depending on the temperature of the water (red=hot, pink=warm, blue=cold).

read more | digg story

January 25, 2006 Posted by | Technology | 2 Comments

The Linux-Powered Keg Fridge

“Cross a Linux computer with a keg fridge, and you get a tap that knows when you’ve had enough”

read more | digg story

January 25, 2006 Posted by | Technology | Leave a comment

Futuristic Cars from the Tokyo Motor Show

Cool slide show of some crazy vehicles. Every two years the automotive industry gathers in Japan to show the world its visions for the future of transportation. The Tokyo Motor Show, historically the coming-out party for the most audacious of vehicle designs, encompasses five massive buildings and more than a million square feet.

read more | digg story

January 25, 2006 Posted by | Technology | Leave a comment

Warning: iPod’s File Structure Keeping Tabs on your Deleted Files

What is truly disturbing about this article is the line “In the end, it was the presence of several high-end cars parked in a relatively poor neighborhood that led authorities to raid one of the addresses there.” So just because there are nice cars in a poor area criminals must live there?

read more | digg story

January 25, 2006 Posted by | Technology | Leave a comment

How to Create a Notify Icon in c# without a form

Tested with .NET Framework 2.0 and Windows XP Professional SP2

This has been bugging me for weeks. I wanted a formless application with a Notify Icon but there didn’t seem to be way to do it. After searching for a solution, I figured I’d give it a try myself. As it turned out it was so easy it was ridiculous. All you have to do create a class that is inherits the iContainer interface. When you create the instance of the notify icon, pass a container object. After that, you can use at as if it was on a form. Make sure you set the Icon property as well. I also have this working with a context menu and I’m guess it will work with any control that requires an iContainer interface. When you create the project, go to the project properties and make sure Output Type is set to Windows Application. Here’s the code:

using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel;
using System.Drawing;

class ControlContainer : IContainer
{
   ComponentCollection _components;

  public ControlContainer()
   {
     _components = new ComponentCollection(new IComponent[] { });
   }

  public void Add(IComponent component)
   { }

  public void Add(IComponent component, string Name)
   { }

  public void Remove(IComponent component)
   { }

  public ComponentCollection Components
   {
     get { return _components; }
   }

  public void Dispose()
   {
     _components = null;
   }
}

class MainEntryClass
{
   static void Main(string[] args)
   {
     SomeClass sc = new SomeClass();
     Application.Run();
   }
}

class SomeClass
{
   ControlContainer container = new ControlContainer();
   private System.Windows.Forms.NotifyIcon notifyIcon1;

  public SomeClass()
   {
     this.notifyIcon1 = new NotifyIcon(container);
   }
}

January 24, 2006 Posted by | Coding | 16 Comments

Bacteria in Yogurt Modified to Fight HIV Infection

Bacteria in yogurt have been modified to deliver a drug that blocks HIV infection. Research based at Brown Medical School in Rhode Island altered the genetics of the bacteria so they generate cyanovirin, a drug that has prevented HIV infection in monkeys and human cells, according to a report at news@nature.com.

read more | digg story

January 18, 2006 Posted by | Science | Leave a comment