Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

anjinha

macrumors 604
Original poster
Oct 21, 2006
7,324
206
San Francisco, CA
My boyfriend is a programmer. I wanted to send him a cute message/email but in code. That would get me soooooo many brownie points. :D Of course I know pretty close to nothing about programming so... Any help? :p
 
Try something sappy and cutesy like:

Code:
int main() {
	while(1) {
		doesLove(you);
	}
}

doesLove(String str) {
	printf("I love %s!", str);
}
 
Try something sappy and cutesy like:

Code:
int main() {
	while(1) {
		doesLove(you);
	}
}

doesLove(String str) {
	printf("I love %s!", str);
}

Hehehe, sounds perfect. :D

Can you explain it to me though? :eek::p

EDIT: Also more suggestions are welcome. Valentine's Day is coming up and all. :D
 
One word, Wingdings
Wingdings.gif


I started sending emails in Wingdings to some of the federal administrators I work with, and they actually (older and not super computer savvy) were able to decode it and respond to me in binary code. I'll tell you one thing. A 5-page report in Times New Roman is no longer 5 pages when it becomes binary code... You send a text in binary code, and your carrier will show up at your house with a flat bed and one of those PODS completely filled with nothing but your monthly bill.
 
One word, Wingdings
Wingdings.gif


I started sending emails in Wingdings to some of the federal administrators I work with, and they actually (older and not super computer savvy) were able to decode it and respond to me in binary code. I'll tell you one thing. A 5-page report in Times New Roman is no longer 5 pages when it becomes binary code... You send a text in binary code, and your carrier will show up at your house with a flat bed and one of those PODS completely filled with nothing but your monthly bill.

or the iOS alternative to that, EMoji's
 
There's always the old unix joke. Not quite code, but still. All valid unix commands.

Code:
date ; unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep

Here's a more SMS friendly version of the code above that actually works.

Code:
#include<stdio.h>
main() {while("I") doesLove("you");}
doesLove(char *str) {printf("I love %s!", str);}

B
 
You (hopefully) know your boyfriend better than I do, so this might not be true for him. But I'm a programmer and I wouldn't want my girlfriend to be nerdy at all. There are enough nerds around at work ;)
 
Try something sappy and cutesy like:

Code:
int main() {
	while(1) {
		doesLove(you);
	}
}

doesLove(String str) {
	printf("I love %s!", str);
}

Where (or which program) do you put that code in to do that loop? Not trying to steal the idea, but I want to try it out. Seems cool.
 
Where (or which program) do you put that code in to do that loop? Not trying to steal the idea, but I want to try it out. Seems cool.

Any C compiler will do, Macs ship with Xcode as an optional install on the second disk that came with your Mac.

Save the modified version I posted (it won't work as originally posted) to a file on your Desktop called love.c.

Then, open Terminal.app and type
Code:
cd ~/Desktop
make love
./love

B
 
Any C compiler will do, Macs ship with Xcode as an optional install on the second disk that came with your Mac.

Save the modified version I posted (it won't work as originally posted) to a file on your Desktop called love.c.

Then, open Terminal.app and type
Code:
cd ~/Desktop
make love
./love

B

Thanks!
 
Any C compiler will do, Macs ship with Xcode as an optional install on the second disk that came with your Mac.

Save the modified version I posted (it won't work as originally posted) to a file on your Desktop called love.c.

Then, open Terminal.app and type
Code:
cd ~/Desktop
[B][COLOR="Blue"]make love[/COLOR][/B]
./love

B

Not War


:D
 
You (hopefully) know your boyfriend better than I do, so this might not be true for him. But I'm a programmer and I wouldn't want my girlfriend to be nerdy at all. There are enough nerds around at work ;)

Perhaps, but one of anjinha's many charms is that she is a geek girl. I'm not so sure she's suggesting this solely because her BF is a coder; I'm sure she enjoys that sort of humor, too.

I say it's a great idea. Wish I had something cute to contribute, but I'm a different kind of geek. :eek:
 
Perhaps, but one of anjinha's many charms is that she is a geek girl. I'm not so sure she's suggesting this solely because her BF is a coder; I'm sure she enjoys that sort of humor, too.

I say it's a great idea. Wish I had something cute to contribute, but I'm a different kind of geek. :eek:

I totally agree.

Wish i could meet a cool geek girl :|
 
So I used that "I love you" loop. He loved it. Thanks. :)

Perhaps, but one of anjinha's many charms is that she is a geek girl. I'm not so sure she's suggesting this solely because her BF is a coder; I'm sure she enjoys that sort of humor, too.

I say it's a great idea. Wish I had something cute to contribute, but I'm a different kind of geek. :eek:

Exactly. :) I'm as much a geek as he is, I just don't know any programming (not yet anyway).
 
Last edited:
OK,

Bad Love Test I found on the Web. Just cut/paste into an HTML file.

Code:
<!-- TWO STEPS TO INSTALL LOVE TEST:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function calc() {

first = document.loveform.name1.value.toUpperCase();
firstlength = document.loveform.name1.value.length;
second = document.loveform.name2.value.toUpperCase();
secondlength = document.loveform.name2.value.length;
var LoveCount=0;

for (Count=0; Count < firstlength; Count++) {
letter1=first.substring(Count,Count+1);
if (letter1=='L') LoveCount+=2; 
if (letter1=='O') LoveCount+=2; 
if (letter1=='V') LoveCount+=2; 
if (letter1=='E') LoveCount+=2; 
if (letter1=='Y') LoveCount+=3; 
if (letter1=='O') LoveCount+=1; 
if (letter1=='U') LoveCount+=3;
}

for (Count=0; Count < secondlength; Count++) {
letter2=second.substring(Count,Count+1);
if (letter2=='L') LoveCount+=2;
if (letter2=='O') LoveCount+=2; 
if (letter2=='V') LoveCount+=2; 
if (letter2=='E') LoveCount+=2;
if (letter2=='Y') LoveCount+=3;
if (letter2=='O') LoveCount+=1;
if (letter2=='U') LoveCount+=3; 
}

amount=0;
if (LoveCount> 0) amount=  5-((firstlength+secondlength)/2)
if (LoveCount> 2) amount= 10-((firstlength+secondlength)/2)
if (LoveCount> 4) amount= 20-((firstlength+secondlength)/2)
if (LoveCount> 6) amount= 30-((firstlength+secondlength)/2)
if (LoveCount> 8) amount= 40-((firstlength+secondlength)/2)
if (LoveCount>10) amount= 50-((firstlength+secondlength)/2)
if (LoveCount>12) amount= 60-((firstlength+secondlength)/2)
if (LoveCount>14) amount= 70-((firstlength+secondlength)/2)
if (LoveCount>16) amount= 80-((firstlength+secondlength)/2)
if (LoveCount>18) amount= 90-((firstlength+secondlength)/2)
if (LoveCount>20) amount=100-((firstlength+secondlength)/2)
if (LoveCount>22) amount=110-((firstlength+secondlength)/2)

if (firstlength==0 || secondlength==0) amount= "Err";
if (amount < 0) amount= 0;
if (amount >99) amount=99;

document.loveform.output.value=amount+"%";
}
//  End -->
</script>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

<BODY>

<form name=loveform>
<input value="Bill Clinton" name="name1" type="text" size="20"> + 
<input value="Monica Lewinsky" name="name2" type="text" size="20"> = 
<input value="" name="output" type="text" size="6">
<br>
<br>
<input value="Calculate!" name="calculate" type="button" value="calculate" onclick="calc()">
</form>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  2.65 KB -->
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.