Archive

Archive for the ‘Uncategorized’ Category

Use your Keyboard to turn your monitors off [ PushMonitOff v1.0 ]

March 5th, 2009

Found a handy piece of Software (Available Here) which allows you to quickly turn your monitors off using a keyboard shortcut. The default is Shift-F1. But can be changed using the task manager (seen below).

image

 

PushMonitOff v1.0

Greg Uncategorized

FLEX ItemRenderer in Actionscript 3.0 (AdvancedDataGridRenderer)

March 2nd, 2009

In the following example, I wanted to have a custom Renderer when I expanded a row in the AdvancedDataGrid. I need to do it in Actionscript, so here is what I did.

private function ExpandClick (e:AdvancedDataGridEvent) : void {
            trace(e);
            var children:ArrayCollection = new ArrayCollection([{Name:"Greg",Status:"O",Top:e.item}]);
            e.item.children =  children;            
            var renderer:AdvancedDataGridRendererProvider = new AdvancedDataGridRendererProvider();
            
            renderer.dataField = "Name";
            renderer.renderer = new ClassFactory(View.MagicRenderer);
            renderer.columnSpan = 0;
            renderer.columnIndex = 0;
            var rp:Array = new Array();
            rp.push(renderer);
            trace(tickets.selectedItem);
            tickets.rendererProviders = rp;            
            tickets.expandItem(e.item,true,true,false,null);    
            
        }

Greg Uncategorized

Replace Carriage Returns and New Lines \r \n in Flex for HTML Template

February 24th, 2009

This came up as I was generating and HTML template in Flex. I wanted a new Table Row foreach New Line of a textArea.text

You’ll see that I am replaceing the \r (carriage returns) with HTML table rows and cells. If you are here you are probably  primarily interested in something simple like

private function otherTasks ( text : TextArea ) : String {
//replace "</td></tr><tr><td>” with whatever you want
	var newString:String = text.text.replace(/[\r\n]/g, "</td></tr><tr><td>");
}
private function otherTasks ( text : TextArea ) : String {
	var temp:String = "<tr><td>";
	temp+= text.text.replace(/[\r\n]/g, "</td></tr><tr><td>");
	var str:String = "";
	str+= "<P><table class=\"sample\" width=\"800\"><thead><tr height=13.75>";
	str+="<th>OTHER TASKS NOT IN MAGIC</th>";
	str += "</tr></thead><tbody>";
	str+= temp;
	str+="</tbody></table>";
	return str;
}

Greg Uncategorized

Jury Duty Phone Scam

July 23rd, 2008

All, I just recieved an email which circulated from a senior VP at my company. Here is the exact email.

DO NOT DELETE WITHOUT READING!

Jury Duty Scam

This has been verified by the FBI (their link is also included below). Please pass this on to everyone in your email address book. It is spreading fast so be prepared should you get this call. Most of us take those summonses for jury duty seriously, but enough people skip out on their civic duty, that a new and ominous kind of fraud has surfaced.

The caller claims to be a jury coordinator. If you protest that you never received a summons for jury duty, the scammer asks you for your Social Security number and date of birth so he or she can verify the information and cancel the arrest warrant. Give out any of this information and bingo; your identity was just stolen.

The fraud has been reported so far in 11 states, including Oklahoma, Illinois, and C olorado. This (swindle) is particularly insidious because they use intimidation over the phone to try to bully people into giving information by pretending they are with the court system. The FBI and the federal court system have issued nationwide alerts on their web sites, warning consumers about the fraud.

Check it out here: <http://www.fbi.gov/page2/june06/jury_scams060206.htm>

And here:  <http://www.snopes.com/crime/fraud/juryduty.asp><http://www.snopes.com/crime/fraud/juryduty.asp>

 

Greg Uncategorized

Smoked Pepper Halibut

July 19th, 2008

 

Smoked Pepper Halibut

Smoked Pepper Halibut
Rated  by 3 people
Rate This   
100s of main-dish recipes plus suggestions for simple go-with dishes to make a meal complete.
 
4 servings
Prep: 15 minutes
Marinate: 30 minutes
Grill: 8 minutes
 

Ingredients

Directions

Thaw fish, if frozen. Rinse fish; pat dry with paper towels. If necessary, cut fish into 4 serving-size pieces. For marinade, in a blender container combine chipotle peppers, adobo sauce, sweet pepper, lime juice, oregano, and garlic. Cover and blend until pureed. Transfer half of the marinade to a shallow dish; set aside remaining marinade.

Add fish steaks to dish, spooning some of the marinade over fish. Cover and marinate at room temperature for 30 minutes.

Drain fish, discarding marinade. Sprinkle fish with salt. Grill fish on the greased rack of an uncovered grill directly over medium coals for 8 to 12 minutes or until fish flakes easily when tested with a fork, turning once halfway through grilling. Heat reserved marinade and serve as sauce with fish. Makes 4 servings.

 

Greg Uncategorized

Test of SyntaxHylighter

July 17th, 2008
#!c:\\perl\\bin
#use strict;
use WWW::Mechanize;
use HTTP::Cookies;
use HTML::TableExtract;
use Net::Whois::IP qw(whoisip_query);
use chilkat;
our $count = 0;
my %Whitelist =
(
'67.228.182.163' =&amp;amp;amp;amp;gt; 'Xoopit',
'ip.ip.ip.ip' =&amp;amp;amp;amp;gt; 'Work'
&amp;amp;lt;code&amp;amp;gt;);

Greg Uncategorized

Hello World! And Welcome to My Blog

November 29th, 2007

Thanks for visiting my Blog. I’m Greg Jessup and I guess you can describe me as a techie. I currently work in the financial industry but my heart has always been with using technology to make my life better.

This blog is primarily for people like my mom, who just don’t know what is out there, and how it can help them. Occassionally I will have some more technical thingslike how to do something in Perl or in SQL Reporting Services, but it will usually contain tutorials/how-to’s and I bet you didn’t know you could do this kind of stuff.

I invite everyone to read and comment and send me questions to read or write about.

Happy reading!

Greg

Greg Uncategorized