free hit counter

Friday, July 31, 2009

service this

Wednesday, July 29, 2009

BLD_NUM via awk or perl

Trying to grab the build number out of my autogenerated file:

#define BLD_MAJOR 1
#define BLD_MINOR 5
#define BLD_STAMP 0
#define BLD_NUM 4541
#define BLD_STR "1.05.00.4541"
#define BLD_VAL 105004541L

awk is easy:

awk '/BLD_NUM/ {print $3}'

Perl runs outside of cygwin, so I went for this instead:

perl -lane 'if ($F[1]=~/BLD_NUM/){ print $F[2];}'

Labels: ,

Monday, July 27, 2009

FPGAs are heavy on the software

Is it any coincidence that the #1 player in the FPGA market spends more of its resources on its software tools than its competitors?


"Xilinx has more software engineers than hardware engineers; at Altera, the mix is roughly 50-50".

http://www.eetimes.com/showArticle.jhtml?articleID=218500007&pgno=3

Wednesday, July 22, 2009

late to the party with REST

I'm trying to create a TWiki page from my autobuild application, and then I find out that people have been excited about this kind of thing since 2004, and are calling their fancy URLs that return data REST APIs. Where the hell have I been =)

Here's some good linkage to the background on REST:
The Joel on Software Discussion Group - REST - what is it good for

Here's how to use the WWW::Mechanize::TWiki module from Perl:
http://roberthanson.blogspot.com/2006/01/copying-from-blogger-to-twiki-with.html

Here's how someone used a QNetwork request to click a sumbit button.
http://www.qtcentre.org/forum/f-qt-programming-2/t-file-upload-using-qnetworkrequest-qnetworkaccessmanager-17564.html

Here's the Twiki REST API and some other links for programatically editing pages:
http://twiki.org/cgi-bin/view/Support/SID-00138

Tuesday, July 21, 2009

MAXUINT emails?



I mean, I was on vacation for a couple of weeks, but I couldn't have received *that* many emails!

Labels:

Worst error message ever?




The error message that Outlook gave me must be one of the worst ones I've ever seen.


Errors have been detected in the file c:\Documents and Settings\outlook.ost. Quit Outlook and all mail-enabled applications, and then use the Inbox repair tool (Scanpst.exe) to diagnose and repair the errors in the file. For more information about the Inbox repair tool, see Help.

If they know what to do, and have created a tool to fix this, then why do they bother the user with the painful details?

Labels: