A month ago, I mentioned codename Moflotz, and I’m back again to introduce you to the team. I could sit here and rave about everyone’s talent, but instead, I’ve asked each team member to submit a short bio and a photo. Here they are, in no particular order:
A little over a year ago, in the summer of 2011, Google Plus launched. Yea, it’s Google’s social network, probably what Google Wave should have been. I had a lot of interesting experiences back then. One that I still remember is my participation in a collaborative story, headed by Lance Ulanoff, a tech journalist. (You [...]
Many containers are implemented using an array. You have the dictionary object, and the backing store, which is the array. In our dictionary class, we use our custom Array class as the backing store.
As per our definition of recursion from a previous lecture, an array is defined as an element followed by an array. In some languages, once you declare a variable as an array a of size 10, you can’t redeclare a as an array of 9 elements. However, C++ lets the programmer manipulate pointers in this [...]
To the pythagoreans, the square root of 2 was unfathomable. They took the Pythagorean Theorem seriously enough that when one of their members leaked it, they tried to kill him. Learn to speak boolean. Instead of writing this code: bool b; if(b==true) /* … */ Write this: if(b) That’s “talking the language of boolean”. Another [...]
This is the overloaded insertion operator of the insertion class: friend std::stream &operator <<(std::ostream &os, const Array &array); It is declared as a friend because a friend function is one that is not part of the class, but has access to the class’s private data members. Assignment is when you have an existing object and [...]
Guess what broke again? Silly DOT, signs are for quiet streets.
Sometimes you want to add a drop shadow to a navigation bar. I dunno why, maybe you want to violate the HIG because you’re particularly annoyed that your “Happy Pigs” game didn’t beat Angry Birds on the top charts. Whatever your motivation, here’s how:
I’ve been looking at the incoming search terms on my blog over the last few days and they’re quite telling. I’ve seen a couple of searches for “draw something iPhone hack”, “draw something coins hack”, and “”draw something products.json”. In response to those searches, and because the original two posts weren’t so clear to the [...]
In case I haven’t waved my blog post in your nose enough yesterday evening, I’ve been poking around at Draw Something for iPhone. Here’s how to cheat:
It’s late night hackery here in Philadelphia, PA. I’m here with tonight’s app, Draw Something, brought to you by OMGPOP. OMGPOP’s website says that they’re an online gaming website around since 2006. Good for them. OMGPOP was bought by Farmville maker Zynga. Good for them. Anyway, enough background info. Let’s jump in. (Also, if you’re [...]
Imitation is flattery, right? Browsing the App Store earlier, my Mom wanted to see my Zmanim app. So, I searched for the keyword “Zmanim”. By all previous accounts, I should have been among the first several results. I was not. Instead, I found another app, which shall remain unreferenced, for fear of escalating sales. Yea, [...]
Dad’s perfectly chopped apple for Charoset. חג כשר ושמח!
Let’s continue working on the Array class with some overloaded operators. If the only thing a class member function does is return a data member without changing anything in the class, the function is said to be immutable. If a class member function changes or mutates members in the class, the function is said to [...]
I had a rough day yesterday. The following is an email I wrote about it to one of my siblings who is studying abroad. I think it would make an interesting read so I’ve redacted a bunch of information and I am posting it here. I went to synagogue as usual, got back and got [...]
The walkway overlooking the pond outside of Ingersoll Hall Extension is a favorite place for fraternities to hold pledge ceremonies for incoming members. So I wasn’t surprised this evening, to see what sounded like a frat-boy. As I was leaving campus, I saw something new and exciting. A fraternity member walking towards the sacred spot, [...]
I am about 15 minutes late, but it looks like we’re doing something interesting today. We’re coding an “Array Class” which will take care of a lot things we’ve done manually in the past. Specifically, we’re going to be taking care of the size of the array, and dynamic resizing.
Professor Weiss is writing an Array class now. As necessary, we’re going to resize the array by creating a new one changing the pointer to it. The constructor of this class is going to have a private variable called intialCapacity
Capacity is the total number of elements in the array. Size is the number we’re using now. Prof Weiss is using a default value for initial capacity. If you don’t pass an initial size, you’ll get 100 items.