the drawings of Leonardo da Vinci

February 26th, 2006

the drawings of Leonardo da Vinci

Making Movies with Linux from Production to Distribution

February 26th, 2006

Making Movies with Linux from Production to Distribution
-=Making Movies with Linux from Production to Distribution=-
Ben Moore ben@netjunki.org
Introduction

For a project I was recently doing I needed to do a bunch of video processing. Since I was in the mood for a challenge(and the fact that the software to do the project with MacOS was on order still) I went ahead and figured out how to do it all with Linux. Let me start out by noting that I am in no way a complete expert on this subject. There are A LOT of projects related to video and linux. And many of them are under heavy development. This is meant more as a brief overview to the process of mangling and encoding video under linux.

How is it done? bi-directional LEDs

February 24th, 2006

How is it done?
Here’s the code I’m using on my microcontroller, incase anyone is interested in following along:

This is in Proton Basic, for a Microchip PIC 18F452 running at 20Mhz

It should work on any pic, you may need to fudge the ports some – I’m not sure what the effect of a lower clock speed would be.

Code:
DEVICE 18F452
XTAL 20

TRISD = 0 ‘ port d initially all outputs

Symbol LED = PORTA.0 ‘ Onboard Status LED

Symbol Sens1 = PORTD.7 ‘ Sensor LED1 Anode Port
Symbol Sens2 = PORTD.6 ‘ Sensor LED2 Cathode Port

Symbol Dir1 = TRISD.7 ‘ Sensor LED1 Anode Port Mode
Symbol Dir2 = TRISD.6 ‘ Sensor LED1 Cathode Port Mode

Dim SensStat AS BYTE ‘ Sensor LED1 Port Status Variable

Clear ‘ Clear everything

LOW LED ‘ Onboard LED off

DelayMS 100 ‘ wait for things to settle

GOTO Start ‘ skip led test

LEDTest:

‘ just turn the led on
DIR1 = 0 ‘ output
Sens1 = 1 ‘ source

DIR2 = 0 ‘ output
Sens2 = 0 ‘ sink

DelayMS 2000 ‘ wait 2 sec

Sens1 = 0 ‘ sink

DelayMS 2000

Start:

‘ just turn the led on
DIR1 = 0 ‘ output
Sens1 = 1 ‘ source

DIR2 = 0 ‘ output
Sens2 = 0 ‘ sink

DelayMS 1 ‘ wait 10ms

‘ now reverse bias the led, charging it up
Sens1 = 0 ‘ sink
Sens2 = 1 ‘ source

DelayUS 10

‘DelayMS 5 ‘ one ms should be plenty of time to charge the diode

DIR2 = 1 ‘ switch pin to input

DelayMS 1 ‘ wait

SensStat = Sens2 ‘ read the state of the pin

SensStat = SensStat ^ 1 ‘ invert the result

LED = SensStat ‘ set onboard led to the state, on = light was detected, off = no light

GOTO Start ‘ repeat

END

The Conservative Voice : Forum

February 22nd, 2006

The Conservative Voice : Forum

This is an article from “The conservative voice” so yeah – the pickings are easy. I was going to post a comment, but then I thought that I sounded too granola-ee.

“how can he be stolen unless inappropriately taken from another human being?”

I like the idea that you can’t steal a monkey unless it belongs to someone. I’m no buddist, but that it’s a pretty shady arguement to say that you can do as you will with animals unless they belong to a human. I do not contest that animals have souls… but if they don’t because they can’t do math or learn higher language then the next step is a close look at impared (or infantile) humans.

And then the great assertion:
“isn’t it inherently worse to take someone else’s property then some monkey that doesn’t belong to anyone?”

Again, I’m no animal rights activist by far… but I’m pretty sure that the sanctity of living things should be a little more important then sculptures. Unless of course the world is only 5000 years old and antiquity is just a matter of perspective.

Google: It’s good to be the king… or All your monies is becomes us

February 22nd, 2006

BMW given Google ‘death penalty’

This is wild… BMW tried some skeevy search engine stuff and that’s just not cool. They got the business from googsle, who makes all the right moves in my opinion.

First I read it and was all happy that some fart knocking marketing firm got the shaft because they were trying to manipulate the web…

Then I thought to myself, this is a great example for our clients who whine saying “Our SEO (search engine optimization) sucks, how can we get in the first 10 results” – to which we invariably reply “You need better content, what did you think your web pages offered in terms of information?”

Then I read down further and found out that as soon as google announced that bmw got 0 points in the ranking because of their cloaking, the stock price took a big hit.

MONEY!!! holy shit… google can control the world. Imagine you find out that some huge car dealer is monkeying around with your terms and conditions and you know they are going to get the naughty stick…. you could short sell that company’s stock and make millions (if you had the money to invest of course).

That’s so awesome, and as long as you wait until two seconds after you make the new posting, it should be relatively legal (so far). I imagine that more companies will try to get ‘creative’ with their google presence and with that influence comes the chance of big swings.

It’s good to be the king.

MIT OpenCourseWare | OCW Home

February 22nd, 2006

MIT OpenCourseWare | OCW Home

I LOVE KNOWLEDGE!

Some reverse or preverse racism here

February 22nd, 2006

This post was originally just going to be about how some spots on google earth have incredible resolution – like really really frigging close resolution. So close that you kind of get the willies thinking about how powerful the satellites are that the public does NOT have access to.

Here’s the picture
niger shanty town

Here’s the article that pointed this image out to me: http://www.theregister.co.uk/2005/10/14/google_earth_competition_results/page11.html

Okay – so now back to the title. I don’t know if it’s just because Febuary is Black awareness month or whatever… but I kind of shuddered when I saved the image for the shanty.

I shuddered and almost looked around guiltily because it is named Niger Shanty Town… and because it’s from Africa I immediately felt like I was contributing to some racist vibe because I have a file on my computer that is almost named nigger something… what a weird knee-jerk reaction.

And that made me think of another incident like this I had yesterday. I went to drop off new contacts and glasses to Mariel because her’s ripped early in the day. And on the way around the corner from MGH there was a black guy that was 1/4 of the way in the crosswalk (starting from my left to right) and I didn’t see him till it was kind of late, like necessitating a hard stop even though I was going slow…

So I did my “partial wave, sorry I didn’t see you and stop” thing that I always do. And then 100 feet down the road there was another crosswalk and a similar situation arose with a white chick walking left to right, but she was like further then 1/4 a way into the crosswalk when I saw here and I easily could have stopped… but instead I kind of sped up.

Instead of risking the chance of being racist, I just looked like an inconsiderate driver. All this flashed through my head at an alarming rate – while navigating a vehicle around a busy street with lost of hospital patiences and crosswalks.

I hate racism… not because of the inhumanity to man and all that – but just because I have to sit and think about things that I shouldn’t have to think about. I strive hard to hate/like everyone the same regardless of the things they have little control over (like their parents). And even though I am pretty much color blind, I still occassionally have to think about whether I appear to be color blind. That sucks. I don’t know who I blame more, the f’d up crackers that enslaved a race for their own comfort… or the militant black retaliation that caused everyone to be paranoid.

Same thing with feminism. There should be less talk about the specifics of racism or sexism and more punishment of people who will use whatever ‘ism’ to treat some people like crap for no good reason.

I am not pro-

Business 2.0: 2005’s 101 Dumbest Moments in Business – February 1, 2006

February 22nd, 2006

I feel like I already quoted this, but it’s worth another mention.

Business 2.0: 2005’s 101 Dumbest Moments in Business – February 1, 2006
100. Bubble Trouble, Part 7: Bubble? What bubble? Oh … that bubble.
In May an Experian-Gallup national survey finds that 65 percent of Americans haven’t heard anything about a possible “housing bubble.” Another 12 percent have heard “only a little.” Indeed, 70 percent expect home prices to keep rising, while only 5 percent think they’ll slip. However, when the facets of a housing bubble are described to them, about 40 percent go on to say that the scenario is likely to occur in their area in the next three years.

MERL TR2003-035 Very Low-Cost Sensing and Communication Using Bidirectional LEDs

February 22nd, 2006

MERL TR2003-035 Very Low-Cost Sensing and Communication Using Bidirectional LEDs

How to build a tin can waveguide antenna

February 21st, 2006

Most every cantenna designs I have seen on-line refer to using an N connector for the antenna you insert into the can… And after a little more reading it seems pretty apparent that isotropic antennas therory is pretty complicated stuff and people seem to know more about how to get it to work then how it works. And this N connector for BNC seems to be the one that needs to be used – but why?

I’m planning on making a cantenna for the pcmcia dlink airextreme card I have laying about, but I don’t really care about ‘connectors’. I have no problem with just hard soldering everything. I’m quickly thinking that this is not a good use of my time.

On the other hand – I do want to be the type of guy who can go anywhere (technologically civilized) and connect to a wep encrypted wlan within 20 minutes or so. Having a slightly beefy directional antenna would probably help in that endeavor

How to build a tin can waveguide antenna
The N-connector assembly will mount in the side of your can. You need to put holes in the right place to mount the connector. The placement of the hole and connect is very important. It’s location is derived from formulas that use the frequency that the antenna will operate at and the can diameter. To make life easy on you, here’s a calculator to figure it out for you.