Jump to content

19 posts in this topic

Recommended Posts

Posted
Well, depends. The MCUs are probably like 20 dollars a piece. You need to estimate the amount of energy you will need. Well, I'd say at most it's $1000. But, when you have built the software, you can probably keep all the MCUs for years to come. Cost thereafter is the energy bill.

Where do you buy this stuff? Where do get the software?

Software is developed inhouse using C++. Very easy to do for a skilled programmer (aka me). I can make a gui interface to build a standard window, and make it handle different signals, etc...Signal Processing, I can use Matlab for that so I can capture the music and do some DSP analysis on it to determine how I'd like to setup notes to switch, etc...Then, I'd implement that onto hardware which is the MCU, and/or the 7400s chips, FPGA boards.

MCUs, 7400s, FPGAs can be bought from Digi-Key.

Unfortunately, I'm not even an unskilled programmer It would be fun to do something like that.

I like to think that I'm still a pretty decent coder (though I've been a management type for about 10 years, I still mess around in Perl quite a bit).

Here's one for ya. Can you guess the output?

#!/usr/bin/perl

my @names = qw(Spooky CMaster BY);

foreach $n (sort @names)

{

print "$n boffs sheep every night\n" if $n =~ /$S/;

print "$n is the resident VJ engineer\n" if $n =~ /$C/;

print "$n is a blowhard twit\n" if $n =~ /$B/;

}

Spooky boofs sheep, Neils is the resident engineer and BY is a blowhard twit?

R.I.P Spooky 2004-2015

Filed: K-1 Visa Country: Thailand
Timeline
Posted
Well, depends. The MCUs are probably like 20 dollars a piece. You need to estimate the amount of energy you will need. Well, I'd say at most it's $1000. But, when you have built the software, you can probably keep all the MCUs for years to come. Cost thereafter is the energy bill.

Where do you buy this stuff? Where do get the software?

Software is developed inhouse using C++. Very easy to do for a skilled programmer (aka me). I can make a gui interface to build a standard window, and make it handle different signals, etc...Signal Processing, I can use Matlab for that so I can capture the music and do some DSP analysis on it to determine how I'd like to setup notes to switch, etc...Then, I'd implement that onto hardware which is the MCU, and/or the 7400s chips, FPGA boards.

MCUs, 7400s, FPGAs can be bought from Digi-Key.

Unfortunately, I'm not even an unskilled programmer It would be fun to do something like that.

I like to think that I'm still a pretty decent coder (though I've been a management type for about 10 years, I still mess around in Perl quite a bit).

Here's one for ya. Can you guess the output?

#!/usr/bin/perl

my @names = qw(Spooky CMaster BY);

foreach $n (sort @names)

{

print "$n boffs sheep every night\n" if $n =~ /$S/;

print "$n is the resident VJ engineer\n" if $n =~ /$C/;

print "$n is a blowhard twit\n" if $n =~ /$B/;

}

Spooky boofs sheep, Neils is the resident engineer and BY is a blowhard twit?

Close. But there is a 'sort' in my foreach loop. That will sort the elements of the list in alphabetical order.

So the actual output should be:

BY is a blowhard twit

CMaster is the resident VJ engineer

Spooky boffs sheep every night

There is a carriage return (\n) in each print string, so each line is printed separately.

Also, there is a bug in my regular expression, meaning you won't get this output if you run the code as is.

Can you find the bug? No?

Well, the bug is the use of the '$' which I intended to match the first character of each target, but in fact matches the last character.

To match the first character, the '^' is needed,

hence

print "$n boffs sheep every night\n" if $n =~ /^S/; etc.etc.

Yes, I am a bit of a geek. But I still lovez my sheep :luv:

Posted
Well, depends. The MCUs are probably like 20 dollars a piece. You need to estimate the amount of energy you will need. Well, I'd say at most it's $1000. But, when you have built the software, you can probably keep all the MCUs for years to come. Cost thereafter is the energy bill.

Where do you buy this stuff? Where do get the software?

Software is developed inhouse using C++. Very easy to do for a skilled programmer (aka me). I can make a gui interface to build a standard window, and make it handle different signals, etc...Signal Processing, I can use Matlab for that so I can capture the music and do some DSP analysis on it to determine how I'd like to setup notes to switch, etc...Then, I'd implement that onto hardware which is the MCU, and/or the 7400s chips, FPGA boards.

MCUs, 7400s, FPGAs can be bought from Digi-Key.

Unfortunately, I'm not even an unskilled programmer It would be fun to do something like that.

I like to think that I'm still a pretty decent coder (though I've been a management type for about 10 years, I still mess around in Perl quite a bit).

Here's one for ya. Can you guess the output?

#!/usr/bin/perl

my @names = qw(Spooky CMaster BY);

foreach $n (sort @names)

{

print "$n boffs sheep every night\n" if $n =~ /$S/;

print "$n is the resident VJ engineer\n" if $n =~ /$C/;

print "$n is a blowhard twit\n" if $n =~ /$B/;

}

Spooky boofs sheep, Neils is the resident engineer and BY is a blowhard twit?

Close. But there is a 'sort' in my foreach loop. That will sort the elements of the list in alphabetical order.

So the actual output should be:

BY is a blowhard twit

CMaster is the resident VJ engineer

Spooky boffs sheep every night

There is a carriage return (\n) in each print string, so each line is printed separately.

Also, there is a bug in my regular expression, meaning you won't get this output if you run the code as is.

Can you find the bug? No?

Well, the bug is the use of the '$' which I intended to match the first character of each target, but in fact matches the last character.

To match the first character, the '^' is needed,

hence

print "$n boffs sheep every night\n" if $n =~ /^S/; etc.etc.

Yes, I am a bit of a geek. But I still lovez my sheep :luv:

It may as well be Chinese. I'm just a dumb Yank from Boston.

R.I.P Spooky 2004-2015

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
- Back to Top -

Important Disclaimer: Please read carefully the Visajourney.com Terms of Service. If you do not agree to the Terms of Service you should not access or view any page (including this page) on VisaJourney.com. Answers and comments provided on Visajourney.com Forums are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Visajourney.com does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. VisaJourney.com does not condone immigration fraud in any way, shape or manner. VisaJourney.com recommends that if any member or user knows directly of someone involved in fraudulent or illegal activity, that they report such activity directly to the Department of Homeland Security, Immigration and Customs Enforcement. You can contact ICE via email at Immigration.Reply@dhs.gov or you can telephone ICE at 1-866-347-2423. All reported threads/posts containing reference to immigration fraud or illegal activities will be removed from this board. If you feel that you have found inappropriate content, please let us know by contacting us here with a url link to that content. Thank you.
×
×
  • Create New...