Month: December 2013

Text Play in ASP

ASP is what’s used in Microsoft’s IIS (Internet Information Server) to give it some interactivity.

I’ve recently gotten a contract to do development in it. Now most of my experience is just doing ASP changes to normalize and verify data.

This is just something I quickly threw together:

Image

It just asks you name and age.

And then it does this to it:

Image

I had it originally doing ROT-13 but then did ROT-6.

It’s done like so:

<code>

Dim name, age, rot13name, i, j
name = Request.QueryString(“Name”)
age = Request.QueryString(“Age”)
Response.Write(“Name: ” & name & “<br />”)
Response.Write(“Age: ” & age & “<br />Rot13 Name is: “)
For i = 1 to len(name)
  Response.Write(chr(asc(mid(name,i,1))+5))
Next
Response.Write(“<br />”)

Response.Write(“But that’s not all!”&”<br />”)

For j = len(name) to 1 step -1
   Response.Write(mid(name,j,1))
Next

</code>

When you hit the submit button the action takes it to an ASP script that does the textual prestidigitation.

 

Duo BASIC – 8 Bit Microcomputer

It’s implemented across 7400 series logic. It’s pretty cool.

Image

I had to assemble the whole thing. About 500 solder connections. Took about 3.5 hours. So doing the math that’s 142.86 soldered connections per hour, 2.4 a minute. That’s because you have to prep the components by taping them to the opposite side, then soldering the pins, trimming leads etc.

I’ve applied power and done the smoke test. One LED doesn’t work. I may have killed it with the heat. But I can replace it, just gotta make sure I put a 1K resistor on it. But otherwise everything works. I’m able to watch the PC LED’s count upward. So it’s executing code.

It only has two instructions – MNZ or Move Not Zero and ADD. It has 3 registers, A, B, and PC. PC is Program Counter btw.

The logic is all discrete. You have buffers, inverters, schmidt triggers, adders, etc. And I want to see if I can write to the EEPROM. If I can I could add command like JMP, JNZ, etc. A half dozen more commands would make this a kick ass machine.

And you could potentially tap the LED outputs and run it through say an Arduino with LCD attached and have a rudimentary display for it.

I’m just learning how to flip the switches and commit things to memory. Lots of fun!

A TMI Thursday Post a little early – Kiss the Cook

Got it from Just a Jeep Guy.

Anyhow on with the questions:

1. How good of a cook are you?
Put it this way – so good that someone almost always goes back for seconds.

2. Who taught you how to cook? 
Learned some from my parents and grandparents. But my real education came watching Good Eats and programs like that. Plus using web resources for recipes, technique etc.

3. Who does the cooking in your home?
Mostly me, but every now and then Keyron gets to cook.

4. Do you cook more or eat out more?
Put it this way, what we can cook in this house is orders of magnitude better than you’d get at most restaurants. That’s not to say we don’t occasionally go out for food. Two faves in the general area are Pito’s II and Phoenix Dragon.

5. Are you more of a cook or dessert maker?
I can do entrees, sides, and desserts. Mostly cakes and pies for desserts. Also do my own cornbread and banana bread too. Pretty handy with Chinese food too.

6. What was your worst/funniest cooking moment? 
Made this dish one time – it was heavy on onions and I didn’t really like the flavor of it. But a friend was over and loved the stuff so much. So we didn’t have to throw it away.

7. What’s your best dish?
So many things; I make really good beef & broccoli and General Tsao’s Chicken. But my absolute best is down between two dishes that I and someone else absolutely love. The first is Pork Chops with Sour Cream and Dill sauce, the other is Chicken with Mushroom and Leek Fricassee.

8. Is revenge a dish best served cold? 
Oh yeah, I’m a Khan disciple in that respect.

9. Is the best way to a man’s heart truly through his stomach?
Well yeah of course.

BONUS
Have you made whoopee in the kitchen? Which foods have you used to spice up your love life?

Has anyone not had sex in the kitchen? i mean come on. As to foods – does whipped cream and honey count?

Dee-Na-Mee-Tay Crust

Ok, so you know I’ve been brushing up on my Spanish skills. Dee-Na-Mee-Tay is sort of the Latin version of Dynamite. I think I had mentioned before I made this Blueberry Crumble. The crust on it was fantastic so I’ve adapted it to other things.

It’s a very simple crust:

  • 1.25c Unbleached AP Flour
  • 1 Stick of Unsalted butter, cut into 1/2″ chunks.
  • 1/2tsp salt4 tbsp cold water

Preheat your over to 375F. You’ll want to put the flour and salt in a food processor and give it a twist to combine the salt and flour. Now keep the food processor going and add the chunks of butter slowly until you get a coarse looking flour mixture. Start adding the water about a tablespoon at a time until the dough in the processor forms a ball.

Tip it out and divide into four pieces. Using the palm of your hand smear each of the four pieces to distribute the butter then round it up into a ball. Flatten the ball and wrap in plastic. Put it in the fridge for an hour.

Take it out of the fridge – roll it out. now place it in a pie plate or tin you’ve sprayed with PAM or the like. Use a fork to puncture the bottom of the crust a few times. Now line the crust with aluminum foil and weight that down. I use a cake pan. It’s just heavy enough. Bake this way for 20 minutes. Then remove from oven, remove cake pan and foil and bake for an additional 12 minutes.

What you’ll get is a crust that just pops right out of the pan – go ahead and fill it with your choice of veggie, eggs, blueberry slurry, you name it. Bake to perfection.

Then add the chunks of butter and process through until all the butter and flour are combined.

 

Simple headphone repair

So I’ve got a pair of Subjekt headphones that I REALLY like.

Image

They sound FANTASTIC. Put it this way with some inferior brands of headphones I found myself having to crank the volume pretty high. This one, 1st or second bar it plenty loud enough.

But I sat on them by accident and broke the screw mounts on the right side. But hot glue to the rescue – I just put a dab on the three stumps and mashed it together and presto, headphones repaired and functional for another day.

Didn’t have to re-wire anything which was very nice.

A new Android App – Duolingo

So I downloaded a new app to my phone. it’s called Duolingo and it’s free in the Play Store on your phone. But it also is available on the web too. So don’t despair if you don’t have an Android device.

It covers Spanish, Italian, French, German and Portuguese. Essentially all the Romance languages and then German. I’ve started in on the Spanish and find the basic is very much so – I recall it from three years of Spanish when I was in high school. I managed A’s and B’s so I grasped it. And when I hear native Spanish speakers, depending of course on the local dialect they’re speaking, I can pretty much understand the key phrases. The written I can translate on the fly no issues because all the context is there.

Once I review the Spanish I’ll move on to Italian. Then I’ll do the Italian and then finish out with German and Portuguese. This is fun.