NEWS: Soma sale Xanax 1mg What does phentermine do to your heart Drug interaction sibutramine and phentermine Xanax online pharmacy no prescription Side effects of the drug tramadol Buy viagra in the uk Phentermine without perscription What does xanax look like Dangers of phentermine Phentermine price comparison Viagra without a perscription: Buy viagra canada Paxil and xanax interaction Long term phentermine use Viagra shelf life Levivia viagra vs Online tramadol prescriptions Xanax long term effects Information about viagra! Phentermine money order Phentermine weight loss Cheap phentermine 37.5 mg diet pills Viagra lawsuits texas Saturday delivery phentermine Cialis dosages: Phentermine 37.5 mg Buy tramadol: Taking phentermine with antidepressants Prozac and xanax induced mood disorder Ambien on line Free online phentermine shipping Buy cheap tramadol Phentermine resin Xanax pills Viagra doseage Phentermine no rx needed Prescriptions on line phentermine Xanax pics Xanax prescription online, Phentermine and diet pill Otc viagra Tramadol hcl 50mg Phentermine overnight delivery no prescription, Meridia better than phentermine Phentermine hcl side effects Meridia vs. Phentermine Xanax dosage Buy viagra 1 No prescription phentermine Phentermine complications Xanax withdrawl symptoms How viagra works Phentermine buy cheap Filing income tax buy tramadol Anti cialis impotence No prescripton phentermine Order ambien. Order phentermine by cod Viagra for women Phentermine diet drug Cialis on line, Phentermine line Buying vicodin online Phentermine phendimetrazine Viagra prescription uk Anti cialis impotence Xanax for dogs. Canadian pharmacy phentermine Cheap viagra online prescription No perscription tramadol Free viagra order online 120 tramadol Generic xanax xr Cheep phentermine Drug screening phentermine Xanax online no prescription Canada generic viagra. 50 mg viagra Tramadol and online pharmacy? Xanax weight gain Herbal phentermine Phentermine 30 mg ordered with discover card Fioricet with codeine! Methadone and xanax Phentermine use Buy cheap vicodin Non prescription phentermine: Phentermine 37.5 pay by money order Cialis generic canada Online cialis Buy discount viagra online. Viagra alternative for women Generic cialis india Linkdomain buy online viagra info domain buy onlin Buy viagra without a prescription Phentermine 37.5 mg no prescription 90 cod count day phentermine. Side effects from prozac and xanax Online pharmacy viagra? Buy phentermine mastercard Phentermine buy best Overnight shipping viagra Free viagra trial? No phentermine prescription Viagra without prescription, Using viagra Discount vicodin Viagra substitutes Cheap prescription viagra Phentermine 6 pm order Abbr href rel title title viagra! Soma addiction Do companies sell phentermine with low dose ingredients Tramadol and drug tests Viagra vs levivia Effects of long term xanax use Ambien eminem Get viagra Phentermine 37_5 Buying viagra Buy soma online Buy phentermine in canada Phentermine in stock ready to ship saturday delivery Westword fioricet phentermine Phentermine diet drug Best price for viagra in the uk Phentermine in jonesboro arkansas. Xanax withdrawls Wholesale pfizer viagra. Method of payment accepted cod phentermine Viagra for woman information, Viagra best buy Watson soma Xanax and grapefruit juice Viagra results Xanax valium Viagra sex Delivery generic overnight viagra Anxiety disorder xanax xr to wean off effexor xr! Cod online pharmacy phentermine sell Us pharmacy phentermine Xanax in early pregnancy Black market phentermine: Xanax sale Vicodin m360 University rochester viagra pfizer Buy cialis online, Fast phentermine Buy viagra canada Ingredient in phentermine Appetite suppressants equivelant to phentermine: Low cost phentermine health insurance lead Female spray viagra. Viagra ingredients Phentermine hydrochloride ship to missouri Viagra success story Diet discount phentermine pill Xanax no prescription required Xanax drug prescription Xanax Viagra cialis levitra dose comparison Phentermine medication Viagra sale. Free ambien Natural viagra alternatives Generic uk viagra Cheapest phentermine online no prescription, Cheap quality viagra Buy cheap online uk viagra Order phentermine phentermine online Xanax prescriptions Pictures of xanax bars Cod tramadol Tramadol without perscription 50 mg tramadol Hydrocodone vicodin Viagra erection Xanax dosages Cialis information Cheapest phentermine Phentermine rx! Black market phentermine Purchase vicodin Cialis vs levitra Viagra uses Order viagra now Phentermine message boards Xanax xr 3 mg Buy phentermine shipped usps Tramadol without a prescription Buy free phentermine shipping Phentermine blue diet pills Herbal phentermine review Xanax 1mg Phentermine pill online discount Picture of xanax pills Generic cialis softtabs Tramadol hydrochloride tablet Generic viagra uk. Phentermine diet pills diet pills Xanax xr 3 mg Phentermine without prescription Phentermine buy order, Diet drug loss phentermine weight Cialis new viagra Generic cialis from india 50 hcl mg tramadol, Phentermine tablets Viagra investigator Does phentermine really work Xanax withdrawals Xanax drug prescription Levivia viagra compared Soma sleep Order phentermine online and cod shipping. Order xanax overnight Compare viagra to cialis Herbal viagra Hydrocodone cough syrup Generic price viagra Buy phentermine no prescription? Phentermine alternatives Meridia vs phentermine Adipex diet phentermine pill Alprazolam xanax Phentermine price Buy viagra online uk Better than viagra Phentermine weight loss pill Viagra 6 free samples Cialis compared to viagra Why phentermine Phentermine and carbs Buy cheap online uk viagra Lowest cost generic viagra Overnight phentermine Phentermine tricks Info on meridia Pfizer viagra! Viagra alternates Buy cialis in uk Cod overnight tramadol Difference between cialis and viagra Viagra drug interaction Viagra women? Information on the drug xanax Cheap phentermine diet pills Free sample viagra Cheap viagra in uk? Alternatives to viagra Prescription viagra written: Ativan re valium vs vs xanax Woman use viagra Diet pill addiction phentermine 20mg cialis, Picture of soma Purchase cialis online! Phentermine online pharmacy What does xanax do? Discount cialis Pharmacy phentermine affiliate. Buy cheap phentermine free fedex Viagra online store Xanax for anxiety Discount online viagra Womens viagra Taking xanax while pregnant Buy florida in phentermine Phentermine effects. Womans viagra Cialis info Phentermine prozac Viagra online ordering Non perscription viagra Hydrocodone guaifenesin Xanax suicide Tramadol prescriptions! Cheap tramadol 180 Buy phentermine without prescription. 180 tablet tramadol Written prescription for viagra. Free generic sample viagra Phentermine 37 5mg shipped to kentucky, Withdrawal from xanax Phentermine ups shipped? Viagra online pharmacy Levivia vs viagra! Where can i buy viagra Cheap phentermine overnight Phentermine worldwide shipment Tramadol medicine Cialis viagra Buy get online prescription viagra Phentermine and atkins diet Prescription viagra? Vicodin abuse Phentermine canadian pharmacy! Sample viagra Phentermine prescriptions Long term effects of xanax Discount viagra online Dangers of phentermine heart Viagra substitute Phentermine testimonials Nitroglycerin and viagra Cialis comparison levivia viagra What does generic xanax look like: Buy phentermine fedex Cheap online phentermine: Phentermine amide Line pharmacy phentermine Hydrocodone info Phentermine 37.5 no prescription Cialis levitra sales viagra Tramadol hydrochloride overdose Cialis vs viagra Fioricet Phentermine blue Does xanax show up on drug tests. Xanax online without a prescription Buying viagra in the uk Non perscription generic cialis Phentermine usa Buy viagra Viagra paypal france Viagra testimonials Comparison viagra cialis levivia! Effects of viagra on women Cheap xanax no prescription Buy phentermine online without a prescription Frontier pharmacy phentermine Xanax sexual side effects How to inject xanax pills Phentermine 37.5 cheap Hydrocodone cod only Hydrocodone picture Buy phentermine cod! Alternative herbal review viagra Buy locally viagra? Buy phentermine online pharmacy Order phentermine online without perscription Diet page phentermine pill yellow How fast can you loss weight with phentermine 150 tramadol Low cost viagra Free viagra samples Generic cialis online Viagra erection Xanax and drug testing Cause rebound weight gain phentermine Tramadol cause kidney problems Xanax mg Cheapest secure delivery cialis uk Discount xanax Generic viagra from india Compare ionamin phentermine Xanax dose Buy cialis generic Buy buy domain link online online viagra info viag Buy generic xanax Viagra dosage Information about street drugs or xanax bars Uk viagra Viagra online sales Viagra dosages Pfizer viagra How long does viagra last Viagra online uk Xanax look alike Heart phentermine Free pack sample viagra: Order buy phentermine online Discount cialis Online pharmacy xanax Diet in phentermine pill uk Prescriptions on line phentermine Cheap viagra uk Soma gallery Viagra alternatives, Recreational viagra Low dose xanax prosexual Cialis order Compare cialis levitra: Phentermine free delivery Viagra herbal alternative Cialis levivia sales viagra Pictures of xanax bars Phentermine buy Xanax versus prozac Is tramadol a narcotic Levivia viagra Cheap cialis Sell viagra online Xanax 2mg Apcalis cialis Buy phentermine yellow Xanax interaction with paxil Vicodin side effects Phentermine 37.5 free shipping Cialis review Information medical phentermine! Viagra samples Cheapest generic viagra Online viagra Ups cod phentermine Buy soma online Viagra mail order? Generic viagra canada Buy cheap uk viagra Drug test tramadol Bactrim phentermine, Natural suppliments work like viagra Phentermine next day delivery Hydrocodone dosage Buy tramadol without prescription. Buy hydrocodone where Cialis side effects Xanax and valium Phentermine ship to florida Bulk phentermine Best price viagra Phentermine quick Viagra dose. Viagra paypal france Tramadol drug interaction Viagra knock offs Buy levivia viagra Alcohol hydrocodone Comparison levivia viagra Phentermine message board Viagra substitutes, Women using viagra Cheapest free shipping phentermine Cash on delivery shipping of phentermine Phentermine and diet pill Free shipping phentermine Cialis samples Buy online prescription viagra without Generic viagra overnight shipping Phentermine hoodia diet pill Effects of long term xanax use Tramadol drug test Xanax side effects. Cheap phentermine canada Cheap cialis tablets Buy lvivhostcom online viagra viagra No prescription viagra Xanax and grapefruit Phentermine 37.5 adipex 37.5 mg Xanax shipped cod Zoloft and xanax Generic viagra fast shipping Long term effects of phentermine use Phentermine 37_5 Xanax long term effects Xanax and weight gain Blue 30 mg 90 free shipping phentermine pharmacy Tramadol avinza drug interaction Mexican pharmacies online+xanax Phentermine online consultation Viagra alternate. Tramadol no prescription Lisinopril with viagra. Phentermine hc Discount xanax Phentermine diet medication Cheap fioricet Buy phentermine diet pill Phentermine international order! Online adipex phentermine prescriptions Taking phentermine with antidepressants Online phentermine no prescription Phentermine forums and chats Xanax and alcohol Phentermine 37.5 90 What does xanax do Natural supplement for viagra Herbal phentermine side effects Tramadol dogs Can xanax cause frontal lobe dementia Cialis generic online Half life of xanax Cialis experiences Phentermine pharmacies What does phentermine look like No prescription xanax Compare viagra cialis levitra, Phentermine np with hoodia Xanax withdrawl Discount generic cialis Phentermine in florida. Phentermine prices History of phentermine use Bosch power tools zio lowest viagra Phentermine medical insert Buy cialis in uk Viagra use Cheapest xanax Order phentermine by for saturday delivery Chemical name for viagra Cheap phentermine no shipping? Phentermine and glucophage Viagra xenical No prior perscription tramadol Buy online salescom viagra Best price viagra Phentermine depression Tools needed for injecting xanax Buy viagra online Buying xanax Cialis generic viagra Cheapest tramadol Xanax withdrawel symptoms Phentermine and ocular hypertension Order viagra visit your doctor online Phentermine online stores Canadian pharmacy viagra Buy xanax without a prescription Buy viagra online without prescription Best online deal for phentermine Viagra patent expiration Side effects of drug xanax About phentermine Hydrocodone side effects vicodin Sophia viagra Fill online prescription viagra Buy xanax online without a prescription.

iPhone SDK, with IB

Shortly after the initial release of the first iPhone SDK, Apple quickly followed it up with a second release just one week later that includes the interface builder.

Seriously:

http://developer.apple.com/

Hurray!

I’ve moved to LA, finally! Hurray

Check out my recent works either at:

http://blog.xnot.org
http://guerillaimprov.com
http://iowest.com
http://sohotandsexyionlyneedoneshoweraweek.com

Oh yeah, and the iPhone SDK is OUT!

Effortlessly farm work to an EC2 instance without batting an eye!

We’ve (Ron Evans and myself) have been working hard to release a new gem called ProcessorPool that uses EC2 and S3 to run your processor heavy-lifting!

Check it out at Blog @ CitrusByte

Gem runner bug on slicehost installation

So, I got and interesting error when I installed and updated my rubygems on my slicehost account

sudo gem update --system

caused
uninitialized constant Gem::GemRunner (NameError)

The solution:
Add require “rubygems/gem_runner” on line 23

Change it from:

require 'rubygems'
Gem.manage_gems

To:

require 'rubygems'
require 'rubygems/gem_runner'
Gem.manage_gems

Rails without a database

Despite all other options, I decided to write a small project in Rails. But, this project is so small, there is really no need to store any information in a database!

Now, with Rails 2.0, it’s easy to accomplish!

The only real thing you have to do is add this line to your config/environment.rb:
config.frameworks -= [ :active_record ]

Cake!

I tend to remove the database.yml file, just to remind myself I’m not using a database!

See code, C code!

In writing a compiler, I’ve come across a sleek part of the standard c library that I just can’t help and a take a few minutes to write a blog post about it!

You can send any number of arguments to a method / macro that you want. It’s called Variadic methods and they have a crazy syntax. Here is a piece of code that I am using in the compiler. It’s super similar to the printf method (the printf method itself is a variadic method, if you’ve ever wondered…)


char *stringerize(const char *fmt, ...) {
	char *buf = safe_malloc(sizeof(char)*BUFSIZE);
	va_list args;

	va_start(args, fmt);
	if (args && strlen(args) > 0)
	  (void) vsnprintf(buf, BUFSIZE, fmt, args);
	va_end(args);

	return (buf);
}

Kind uninteresting, huh? I’ll show you a much more interesting one at the end of the post thatallows you to safely concatenate any number of strings.

The basic idea is that you define a method with the … syntax, such as


char *stringerize(const char *fmt, ...)
...

There are two two ways to access those variables.

One by one
First, you declare all your variables that you are going to use in the method. That has to be before accessing the list. Then, you start the list with


va_list args;

Make sure you don’t forget to declare the args as a list otherwise C will throw a fit.

Then, when you are ready to get the variables, call


va_start(args, fmt);

The second parameter is the last required argument in the command. You do need at least one required argument in a function. The same requirement does not hold true for macros, though.

Then, to get to the variable you call


va_arg(args, const char *);

The second parameter is the type you are expecting to come back. This gives C a heads up as to what to expect.

Then, when you are done and want to move on to the next one in the list, simply call:


va_end(args);

That’s it!

Accessing the variables all at once

You can either do this in a macro that would look something like (untested):


#define VARGS(...) fprintf(stderr, __VA_ARGS__)
// or
#define VARGS(fmt, args...) fprintf(stderr, fmt, args)

There are other ways as well, but those are the ones that stood out to me. In a method, you can do this as I had done in the example above. Just call list and all the arguments are accessible to you, right there in your shirt pocket!

And now, finally for the more important snippet that:


char *concat_commands(const char* str,...) {
	va_list args; char *s; size_t held_memory = 100;
	char *res = safe_malloc(sizeof(char)*held_memory);
	if (res != NULL) {
		char *new_pointer, *word_pointer;
		va_start(args, str);
		word_pointer = res;
		for (s=str;s!=NULL;s=va_arg(args, const char *)) {
			size_t len = strlen(s);
			if (word_pointer + len + 1 > res + held_memory) {
				held_memory = (held_memory + len) * 2;
				new_pointer = (char *) realloc (res, held_memory);
				if (new_pointer == NULL) { free(res); return NULL; }
				word_pointer = new_pointer + (word_pointer - res);
				res = new_pointer;
			}
			word_pointer = memcpy(word_pointer,s,len);
			word_pointer = word_pointer + len;
		}
		*word_pointer++ = '';
		new_pointer = (char *) realloc(res, word_pointer-res);
		if (new_pointer != NULL) {res = new_pointer;}
		va_end(args);
	}
	return res;
}

I hope this helps someone out there save a few hours and remember how cool C even in the midst of the ruby we all love so much. On that note, I urge you to look at the ruby interpreter source code. It’s a tad jumbled up, my guess is because there are a few people working on it, but it is sure damn sexy code. Thanks once again matz!

I’ll be back more in a week or so for more fervent posts after my compiler is done.

More information here

Where have I been?

I’ve gotten a few emails about the lack of posts, so rather than reply to everyone, I figure I’ll set it straight:

I’ve been working on a compiler for class. Boom!

Something kinda cool though:

I can take code that looks like this:


extern void print_int(int x);
extern void print_string(char x[]);

int two[2];
int five[5], one;

void love_me(void) {
	print_string("You love me, don't you?n");
}

void main( void ) {
	two = 4;
	love_me();
}

And turn it into code that looks like this:


.data
	two: .space 8
	five: .space 20
	one: .space 4
_string_0:	.asciiz "You love me, dont you?n"

.text

jal love_me
la $sp, 4($sp)
love_me:
 	# Function prologue
 	sw $fp, -4($sp)						# save old $fp
	sw $ra, -8($sp)						# save return address
	la $fp, 0($sp)						# set up frame pointer
	la $sp, -12($sp)					# Update stack pointer and allocate stack frame

# Load variables on to the stack
la $t9, _string_0
sw $t9, -4($sp)
la $sp, -4($sp)
# Call the method
jal print_string
la $sp, 4($sp)

 	# Function epilogue
	la $sp, 0($fp)						# Restore stack pointer
	lw $ra, -8($sp)						# Restore return address
	lw $fp, -4($sp)						# Restore frame pointer
	jr $ra							# Return

jal main
la $sp, 4($sp)
main:
 	# Function prologue
 	sw $fp, -4($sp)						# save old $fp
	sw $ra, -8($sp)						# save return address
	la $fp, 0($sp)						# set up frame pointer
	la $sp, -12($sp)					# Update stack pointer and allocate stack frame

li $4, 4	# Load _tmp_0
sw $4, -16($fp)	

lw $4, -16($fp)	# Load two
sw $4, two

# Load variables on to the stack
# Call the method
jal love_me
la $sp, 4($sp)

 	# Function epilogue
	la $sp, 0($fp)						# Restore stack pointer
	lw $ra, -8($sp)						# Restore return address
	lw $fp, -4($sp)						# Restore frame pointer
	jr $ra							# Return

print_int:
	li $v0, 1
	lw $a0, 0($sp)
	syscall
	jr $ra

print_string:
	li $v0, 4
	lw $a0, 0($sp)
	syscall
	jr $ra


When I get it done, I’ll open-source it and be back for more ruby joy! So stay tuned amigos!

Quick update

For those of you who don’t know, I have been working in Japan for the last two weeks. This is why the blog has not been updated in a while. Look for more content in the next few days and you shall find it!

For now… enjoy:

Img 0006

Now Ruby beats PHP in speed and setup!

A thread-friendly, super-speedy Ruby web-application framework can now be built faster than heating a burrito!

read more | digg story

Classy web-development dressed in a DSL (EXPLAINED)

The blazing-fast, thread-safe micro-framework was released last week! A new Sinatra resource page has been put up here at http://www.xnot.org/sinatra/

Great for facebook apps and other speed-necessary web-apps. An entire application can be contained in one file!

read more | digg story