MattDiPasquale's blog

How to delete comment spam in Drupal 6

I examined the documentation. Here is the important function:
http://api.drupal.org/api/function/_comment_delete_thread/6

The other things, like updating the comment stats & clearing the cache, are not important to run, IMHO, because they will most likely eventually get called in normal use anyway.

Also, if some of the comments you want to keep have parent comments, make sure you keep all the parent comments all the way to the root comment of the thread.

Run the following MySQL query:

iPhone Application Development Tutorial & Guide

Go through this tutorial: http://developer.apple.com/iphone/library/documentation/iPhone/Conceptua...
It uses InterfaceBuilder. That's fine to start with. But make sure you also look at the section on creating the view programmatically and understand how it works: http://developer.apple.com/iphone/library/documentation/iPhone/Conceptua...

You can also get to a lot of helpful documentation, tutorials, and sample code by pressing alt+command+? while in Xcode.

Handy MySQL Query to find all unique/different values of a column

select col_name, count(col_name) from table_references group by col_name;

How to add HTML to a JavaScript alert box

Okay, well, it's not really HTML,

Just add \n wherever you want a newline
. So, put two \n\n for two newlines, like a paragraph. You can also use \t for a tab character. View the source that creates the button below this line:

WriteRoom: The Matrix of Word Processors

Here is my first experience with WriteRoom:

Wow... This is freaking sweet... haha... cool... i like this... I can make this my journal.. I wonder who this guy is who makes this software. It's pretty cool. Simple design is the way to go. I wonder what happens if you scroll? Anything cool? Is there a scroll bar? Hmmm... I'm making this very messy. I like the default of check spelling as you type. Green on black is sooooooo money. who thought of that? The matrix of word processors.

Find it here: http://www.hogbaysoftware.com/products/writeroom

Matt V. Git: Inspired by JW

Note: apparently this is solved by:
git config --global alias.up '!git pull --rebase';
Thanks goes to wereHamster and others on chat.freenode.irc #git

In this Supreme Court Case, I, Matt Di Pasquale, challenge Git.

I do not think that Git should record a merge commit if the merge completes automatically, w/o conflicts. Understand?

Is there a reason it does this?

Any challenges?

Matt

P.S. To get around this, I git stash, git pull, git stash pop, git commit.

acani: connect and play with nearby people who have similar interests

"A stranger is just a friend I haven't met yet." - Will Rogers

I saw this quote on the Grindr profile of some guy (whom I don't remember).

Grindr is an iPhone app that my brother showed me (I swear!). It's probably one of the coolest social networking applications that I've seen. It connects gay guys that are nearby each other.

Facebook is nice because practically everybody's on it.

Instructions: How to Install Git from Source on Mac OS X 10.6 (Snow Leopard) Intel x86 (32 bit)

This is the best way to install Git on your Mac OS X 10.6 (Snow Leopard) Intel x86 (32 bit).

And a sample ~/.gitconfig file:

And my ~/.gitignore file:

Enjoy!

Matt D.

Natural Vision Improvement

My Experiences with Myopia

Note: Although I speak mainly about myopia, other forms of blurry vision, like hyperopia & presbyopia, and conditions, like amblyopia or strabismus, can be improved & healed naturally.

When a fuse Has blown, It is not sufficient Merely To replace It With a new One.

Here is one of my A papers that I wrote as a Sophomore at Staples High School. I left it unchanged. Since writing it, however, I've learned a lot more about heart disease: How it kills (excerpt: http://www.youtube.com/watch?v=YNeWCvLZaFM) and how to prevent and even cure it (full: http://video.google.com/videoplay?docid=-5215695644951404318#). I highly recommend Dr. Caldwell B. Esselstyn. He is one of the masters of nutrition & heart disease: http://www.heartattackproof.com/

Syndicate content