Get Installed Programs from Registry Windows 7

Posted by admin on October 19, 2012

Here's a little batch file utility to get your installed programs from your Windows 7 registry. This was adapted from an online script that doesn't work on Win 7:

 

C:\Windows\System32\reg export  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall temp1.txt

 

This needs to be all on one line in the batch file, with a space between export and HKEY... my editor broke it into two lines.

 

 

 

 

0 Comments Read full post »

test

Posted by admin on October 18, 2012

 XB3EY79BK5B9

 

0 Comments Read full post »

Excel VBA Macro to delete records with duplicate fields

Posted by admin on October 3, 2012

Every once in a while you need to go beyond the Excel feature that screens out duplicate records and single out records with a duplicate field, that contain data you want to get rid of.

Here's an Excel VBA Macro that does that. This one works for a sheet called "singletons" so you're going to have to change "singletons" to "sheet1" or whatever your sheet is called.

If Sheets("singletons").Cells(i,2) = Sheets("singletons").Cells(i-2,2) then

 

This also starts at row 100679, so you'll need to change that to your last row. The program works from the bottom up, which is the way it has to be. So make sure that the row and data you want to keep is sorted so the good record is the first one, and all the bad records are below that. This Macro checks the data in the B or second column, so you'll probably need to change that too:

Cells(i,2)

USE AT YOUR OWN RISK. BACK YOUR DATA UP!!!!

Here's the whole macro:

 

Sub deleteRowsWithDuplicateData()


For i = 100679 To 2 Step -1
    If Sheets("singletons").Cells(i, 2) = Sheets("singletons").Cells(i - 1, 2) Then     

          Rows(i).Select   

          Selection.Delete Shift:=xlUp   

    End If

Next

End Sub

 

 

 

5 Comments Read full post »

A Flash to HTML5 Odyssey

Posted by admin on June 21, 2012

For the last two days I've been looking at options for making a Flash website readable on mobile devices paying particular attention to iOS devices. We all know how much Apple loves Adobe Flash. Apple is not real fond of developers in general actually, but they really hate Flash developers.

So I looked for the easy way out, of course. Solution number 1 was to use Adobe Flash CS5 and develop in Flash lite. I still can't get it to work with the iPhone, but it did work on Android and Rim devices which are the other two I'm shooting for. Not great, but a partial solution. PARTIAL PASS

I tried Sothink SWF Compiler which has an export swf to html5 capability. This created a huge html file and large javascript file, which threw javascript exceptions on all mobile devices I tested. FAIL

Next, I tried Swiffy by Google, where you can upload an swf file via web page, and it will create an html5 solution for you. Except in my case where it FAILED. Tried several different versions of swf, all of which FAILED.

Next I tried Recool Video Converter which not only FAILED but crashed. Two for one. I tried it on both my Win 64 boxes. When I moved it over to my XP box it did make a video, but the quality was suspect and unusable. FAIL.

 

Verdict: Be ready to shell out some serious cash on Adobe CS5 to do this, or spendsome serious time coding in javascript. Probably both as there is still no easy solution.

 

 

 

 

 

 

 

 

0 Comments Read full post »

Solved: Hibernate MySql "too many connections problem"

Posted by admin on April 30, 2012

I recently had a problem while using MySql with Hibernate in a Java app. Everyone and his dog had elaborate answers on this issue, including changing your connection pool settings, rewriting your entire codebase, and rebuilding the Space Shuttle. The answer was simple. You need to close out the session factory, not just the Session. This is done with this line:

fact.close();

Assuming you named it fact like this:

SessionFactory fact = new Configuration().configure().buildSessionFactory();

 

Which probably would have saved a lot of trouble for most of those developers. A lot of the examples on the internet excluded this simple answer.

 

 

0 Comments Read full post »

Comic Guide to Higgs Boson

Posted by admin on April 30, 2012

0 Comments Read full post »

Outlook 2007 Add-in Using Microsoft Visual Csharp.NET

Posted by admin on April 25, 2012

Here's a good article on how to customize the Outlook 2007 Command Bar:

http://www.codeproject.com/Articles/58238/Outlook-2007-Add-in-Using-Microsoft-Visual-C-NET

 

Just one problem: It doesn't work. Or doesn't seem to. The author forgot to mention a key detail. If you don't actually see the menu after you build and debug-run the project, it doesn't mean it isn't there. Try going to the command bar. Pick the View menu, then Toolbars. Once you pick the Toolbars option you should see a MyToolBarButton. That's your baby. Pick that selection and you should see "My ToolBar Button" command button show up on the command bar. 

0 Comments Read full post »

Text Mining a document's classification

Posted by admin on March 23, 2012

I have a large set of documents in a small amount of formats (html, pdf) and I have to analyze their content and try and classify them in some sort of order, so that I can find what I'm looking for. What does this describe?

 

  1. The Internet
  2. A researcher's electronic library in a directory
  3. 99% of computer user's hard drives

If you answered yes to all three, then welcome to the wonderful world of search engines. This is a big ticket item obviously, and hard to do. If you're successful you'll probably be riding around in your own Gulfstream jet. Google looks for pages that are popular and let's the human resources of the Internet classify their pages for them. Subcontracting out the classification scheme to the human race. In lieu of having several billion people classify the docs on my desktop, what can I do to analyze and classify my docs? A couple of things:

  1. Some of the docs are electronic books I bought, so I can actually use their ISBNs to look them up and classify them here:  http://isbndb.com/

       2. Manually classify them by looking at their subject matter and using a guide. Since we are already classifying books by that system, that might be a semi-decent way to start. But only librarians use that and there are limitations. There is also the Amazon classification system. I was unable to find out the exact method to their madness, but the first hierarchy under books is:

4-for-3 Books

Arts & Photography

Bargain Books

Biographies & Memoirs

Business & Investing

Calendars

Children's Books

Christian Books & Bibles

Comics & Graphic Novels

Computers & Technology

Cookbooks, Food & Wine

Crafts, Hobbies & Home

Education & Reference

Gay & Lesbian

Health, Fitness & Dieting

History

Humor & Entertainment

Large Print

Law

Literature & Fiction

Medical Books

Mystery, Thriller & Suspense

Parenting & Relationships

Politics & Social Sciences

Professional & Technical

Religion & Spirituality

Romance

Science & Math

Science Fiction & Fantasy

Self-Help

Sports & Outdoors

Teens

Travel

Which looks like it is done by sales, and changes often. So we are presented with few viable options. You can attempt to create a classification system by using a Computational Linguistics definition of the document given by analysis of the doc's corpus. Many have tried, many have failed. May fortune favor the foolish. 

 

 

 

 

 

2 Comments Read full post »

ASUS RT-N12 Router

Posted by admin on March 21, 2012

I bought an ASUS RT-N12 router yesterday and set up a network for my wife's office. The routher works great, but the instructions that came with it for quick set up were not so great. First of all, the software to setup the router did not come up automatically when I connected to the router through a network cable. Second of all, the ip address to connect to the router was not 

 

http://192.168.1.1/index.htm

Like the quick setup guide tells you. It is

http://192.168.1.1/

Which shouldn't be a big deal, but became one. After I ignored the docs to the router and figured out the setup screen on my own, things got a lot simpler. Also, when I tried to install their drivers and software on my Windows 7 system I got this error:

Error: two network connections detected

Even though I had disabled my wifi when I was connected to the router through a network cable. Other than that, it's a great router.

 

 

0 Comments Read full post »

Calibre Install on Windows 7 64 bit

Posted by admin on March 2, 2012

I've had the hardest time installing Calibre book reader and ebook converter on my Windows 7 64 bit machine with no idea why. It kept erroring out with the message "Calibre setup wizard ended prematurely." I finally got it to set up by following these steps:

  1. Choose a directory other than the default like C:\Calibre
  2. Choose "Advanced" when setting up
  3. After you hit the Advanced button, uncheck all the options except the first one which installs the main program

After this I finally got it to install. If you still have problems I recommend trying different options on the first tab to get it to install.

 

3 Comments Read full post »