Stuy ambitions

From this month’s Stuyvesant High School Alumni newsletter:

Among the additional allocation requests we would like to have the resources to fill this spring are:

  • Physics: Purchase equipment for ion/plasma thruster

I hope they’re making spaceships. Also, I regret never making a spaceship at Stuy.

Posted in all | Leave a comment

Sample SMTP interaction

this is what happens every time you send an email, between the receiving server and the transmitting client – it’s kinda cute

the contents of the email are after server says “354 Enter mail…”

Server: 220
Client: HELO
S: 250 Hello, pleased to meet you
S: 250… Sender ok
S: 250 … Recipient ok
S: 354 Enter mail, end with “.” on a line by itself
C: Do you like ketchup?
C: How about pickles?
C: .
S: 250 Message accepted for delivery
S: 221 closing connection

Tagged | Leave a comment

How to Make Smartphone Apps

This month I will be holding several events teaching how to make apps in 7 steps using AppMakr – no programming required! Also, for every app you publish (using AppMakr or not) before June 15th, Microsoft will send you a $15 Amazon gift card.

Check back here soon for more details on dates and times of my workshops. I’ll also send a message to anyone who’s already RSVPed.

During the events we will be using the following guide to register on App Hub (app marketplace), create an app, and get it published for anyone to download and use.

If you want to get started by yourself (a good idea since the registration process takes 1-2 days) feel free to download the guide and if you get stuck on anything I’ll be sure to explain it at one of the workshops. Or just make a post on the wall.

If you end up publishing an app yourself, fill out this form and send me a facebook message:

Posted in all | Tagged | Leave a comment

php wishlist script/app

Because I can’t help being self-absorbed and excited by all the presents I’m going to get for my birthday, and because I wanted to practice a bit with php, I made a PHP-based wishlist.

Basically it allows your friends to see your wishlist and get dibs on stuff you want so that multiple people don’t end up getting you the same thing.

It’s flat-file based because I don’t fully understand MySQL yet and I like not having to deal with a completely separate entity.

Files involved:

  • wishlist.csv – this contains all the stuff you want, with each line containing “item,description,link” with description and link being optional. Each time a person selects an item they’re going to get you, a wishlist2.csv is created with your original wishlist sans the item he/she picked, and then renamed to wishlist.csv.
  • index.php – reads wishlist.csv and creates a form with a bunch of radio buttons for each item you have
  • wishlist-form.php – processes the item selection and recreates wishlist.csv without the item picked, and shows a thank you message

Example of wishlist.csv:

Code for reading wishlist.csv and the form which displays it:

Lastly, wishlist-form.php:

Posted in all | Tagged , | Leave a comment