Saturday, July 19, 2008

orbit.c

#include
#include
#include

#define NDIM (2)

typedef struct {
double pos[NDIM];
double vel[NDIM];
} body_t;

const double G = 6.67428e-8; /* cm^3/g/s^2 */

void initargs(int argc, char *argv[]);
double acc(double m, double oneor);

int main(int argc, char *argv[])
{
FILE *ofp;
double m, r, oneor, v, a, t, dt = 1.0;
unsigned int i;
body_t body;

initargs(argc, argv);

ofp = fopen(argv[1], "w");
m = strtod(argv[2], NULL);
r = strtod(argv[3], NULL);
v = strtod(argv[4], NULL);
if (v == 0.0) v = sqrt(G*m/r);

body.pos[0] = r;
body.pos[1] = 0.0;
body.vel[0] = 0.0;
body.vel[1] = v;

for (t = 0.0, i = 0; t < 1.844e6; ++i, t += dt) {
oneor = 1.0/sqrt(body.pos[0] * body.pos[0] +
body.pos[1] * body.pos[1]);
a = acc(m, oneor);

body.vel[0] += dt * a * body.pos[0] * oneor;
body.vel[1] += dt * a * body.pos[1] * oneor;

body.pos[0] += dt * body.vel[0];
body.pos[1] += dt * body.vel[1];

if (i % 10000 == 0) {
fprintf(ofp, "%g\t%g\n", (t / 60) - 2050, body.pos[0]);
}
}

fclose(ofp);
return 0;
}

void initargs(int argc, char *argv[])
{
if (argc != 5) {
fprintf(stderr, "Usage: %s outfile M r v\n", argv[0]);
exit(1);
}
}

double acc(double m, double oneor)
{
return -G*m*oneor*oneor;
}


the orbit code we ran at earthwatch!

Tuesday, July 1, 2008

resizing windows

use the control center it adjusts it so the pane is the proper size.

advanced mode

Open a terminal in Easy Mode hit 'Ctrl+Alt+T'

Code:

# Install KDE 'Advanced mode'
sudo aptitude update
sudo aptitude install ksmserver kicker
sudo reboot


Settings -> Personalization -> Login Mode -> Full Desktop ModeRestart

Monday, June 30, 2008

iii

http://www.redbookmag.com/love/super-happy-couples-ll?link=rel&dom=msn&src=syn&con=art&mag=rbk

:]

No one knows more about how to create a successful marriage than those who live it every day. In their new book, Wonderful Marriage, Lilo and Gerry Leeds, who've been married for more than 56 years, share their wisdom on how to build and sustain a strong and lasting partnership. Some of their tips:Be your ideal spouse. If someone asked you what you wanted from your partner, you'd quickly rattle off a long list of qualities. But a great relationship starts with you, the Leedses say. "It's my job to be the kind of partner I want," Lilo says. "I think, Instead of criticizing, what can I do differently? or What am I doing that is upsetting him?" Once you commit to improving you, you'll notice a difference in your relationship — and you'll be motivated to improve even more. Think before you speak. "When I'm angry, I say, 'Don't talk to me. I'm busy counting to 100,'" Lilo says. "Counting prevents fights from escalating because by the time I'm done, I either forget why I am mad or I realize that what I'm angry about is unimportant." Ask for what you need instead of complaining about what is wrong. If something bothers you, it's better to get it off your chest rather than fume. "But there's a big difference between 'We never go out to dinner' and 'I'd like to go out for dinner,'" Lilo says. "Asking sets a positive tone, and is more likely to get results." Make your marriage a lifelong courtship. "Just because the honeymoon ends doesn't mean the romance has to stop," Lilo says. Gerry adds, "We are still holding hands, making love, and skiing down mountains together. We knew we'd be happy when we met more than five decades ago, but the reality is better than our dreams."

go to bed angry :]

By the time we reach our 15th wedding anniversaries, most of us know how to handle the ups and downs of marriage. Sure, the wedding china may have a few chips, and perhaps we've had one too many spats about who forgot to bring home the milk. But we've also learned to negotiate holidays with the in-laws, wrangle tantrum-throwing kids, and talk each other through blown transmissions and career crossroads.
Now, instead of having our accomplishment acknowledged, it looks like we're in for a whole new set of marital challenges. Friends, family, movies, and talk show hosts warn us of midlife marriage dangers like husbands ditching their wives for younger women or empty-nest syndrome catapulting couples into divorce court. If getting the kids into college didn't force us apart, it seems, then a 20-something blond will.
Well, maybe not. At last count, America's divorce rate had fallen to 36 percent, its lowest level since 1970. That's because, on the whole, most of us like being married, and so do our spouses. And while there are certain challenges inherent in waking up next to the same guy for 5,379 mornings in a row, many so-called "inevitable" marriage pitfalls are really just unexamined old wives' tales. On closer inspection, two facts become clear: There's only a trace of truth in each fable — but there's also the potential to retool them to make your relationship even closer. Here are five of the most enduring myths, plus new rules to replace them.
Myth: Never go to bed angry. If you don't hash through every conflict right away, it'll lead to resentment and ultimately blowups.
As marriage folklore goes, the idea that it's imperative to settle every disagreement before day's end is pretty well entrenched. (After all, that's the way some people read that "Do not let the sun go down on your wrath" line from the Bible, as well as how others interpret the pop-psychology dictum "voicing grievances clears the air.") And many of us have accepted the premise that if we don't address disputes at once, all that unresolved conflict just festers inside us and we'll wake up angrier each day, until someone finally explodes over an uncapped tube of toothpaste.
Ideally, of course, we would all be able to truly forgive every slight and make up before bedtime. But guess what? No one is that perfect. And, in reality, most spouses don't solve problems well when they're mad. In fact, "the idea that it's helpful for couples to air their grievances in the heat of the moment is probably one of the most dangerous marriage myths out there," says John Gottman, Ph.D., professor emeritus of psychology at the University of Washington and author of The Seven Principles for Making Marriage Work. "Often, nothing gets resolved — the partners just get more and more furious." When people are overwhelmed by emotions like anger, they experience what psychologists call "flooding," a physiological response that leaves their hearts pounding and their concentration shot, to say nothing of their ability to resolve arguments fairly or amicably.
New rule: Sleep on it. Conflicts are best dealt with when you have calmed down and are well rested.
Rather than stay up to debate the disagreement du jour, Gottman suggests that couples set aside a moment every night to focus on what's good about their marriage. Then, "no matter what — if you're angry, if he's angry, or if you're both exhausted — kiss good night for six seconds," he advises. "Sure, sometimes you'll be so mad or tired that the kiss will last for six nanoseconds. But it will remind you of your enduring affection, and besides — long kisses often lead to something even better than conversation."
That's not to say that conflicts don't have to be dealt with. To make sure disputes don't get swept under the bedsheets, Gottman recommends having a standing, short "State of Our Union" meeting each week (just not at bedtime). "Take turns telling each other something about your marriage or your partner that you appreciated that week, and then afterward each of you gets to bring up one issue."

Myth: One day the two of you will just realize you've grown apart and fallen out of love.
The fable is that some couples just drift apart as their personalities change or their interests diverge. But experts say if you look closely at most happy twosomes, you'll be amazed at how little they actually have in common. She could spend every spare hour crafting, and he might be the world's most ardent sports fan. Yet they've discovered ways to be themselves and together at the same time: That means sometimes she knits on the sofa to keep him company while he watches the Reds battle the Mets. In fact, experts say, shared interests or even similar temperaments are no assurance of marital longevity. "If these factors were truly important," Gottman says, "couples who meet through matchmaking services, which frequently try to pair singles according to hundreds of points of compatibility, would have a better chance of staying married than those who meet randomly. They don't."
New rule: A marriage doesn't run on feelings — it thrives because both spouses work hard on it.
"We need to give long-term partners credit for their marriages," says Diane Sollee, M.S.W., director of smartmarriages.com. "These couples have probably worked their way through hundreds of disagreements, illnesses, financial problems, kids' issues, maybe even an affair. They survive because they understand that they are a team, and they work to find ways to come together, whether in a crisis or in good times."
The truth is, we all change constantly, and that's a blessing. "If you sprayed fixative on people during their wedding ceremony," says Sollee, "life would just be too boring." But make sure you and your husband are checking in regularly with each other, and that all the little marital compromises and negotiations are making you both feel happy and involved in each other's evolving lives. That way, you can grow together, rather than apart, and, if anything, feel more in love than ever.
Myth: As you both get older, sex will simply stop mattering to you and your husband.
TV sitcoms notwithstanding, the idea that midlife couples settle into sexual hibernation just isn't true. In fact, many report that intimacy improves as the years go by. After all, once they get through their early-relationship trials and errors, Sollee says, "they find a sexual style that makes them both happy." And for many wives, sex certainly doesn't deteriorate in midlife. On the contrary: In a recent British study, 64 percent of women surveyed attested that after they reached menopause, their sex lives either stayed on course or got even better.
What makes intimacy more satisfying is the comfort married couples develop with talking about what doesn't work for them and — perhaps more important — what does. In fact, psychologists at Dalhousie University in Canada recently found that partners' communication about what they wanted sexually was linked to their being happy with the sex itself.
New rule: There's no reason you won't grow more sexually connected.
Since talking about sex is key to sexual satisfaction itself, make it a priority this weekend — regardless of whether you think your sex life is already OK or not. Naturally, even if you both communicate perfectly well about everything else under the sun, it may feel awkward or even embarrassing to suddenly start giving your husband explicit sexual pointers. So ease into the subject. If it occurs to you that you've done it exactly the same way 33 times in a row, you could say, "I can't remember the last time we made love with the lights on, can you?" Sexual reminiscing may not lead to a romantic interlude, but it will get you talking. And the safer each of you feels in expressing what you like and don't like, the easier it is to make adjustments that can ramp up the sexual satisfaction on both sides of the bed.

Myth: When the kids leave home, there will be nothing left to keep your marriage together.
Most parents have pangs of sadness when the kids are finally gone, moments when the house seems impossibly quiet or they catch themselves having a lengthy chat with the cat. And some couples really do struggle — but many renew their commitment to each other. "With the kids out of the house, marriages can bloom — when there is a sense of shared purpose," Gottman says. That communion can sometimes get pushed aside in the daily round of raising a family and making a living. "Some couples may have let that feeling of togetherness die," he explains. "Then it's not the kids' leaving the nest that somehow makes their marriages seem empty. They've already been empty a long time, and when the children leave home, the couple finally notices."
But for many husbands and wives, "marital satisfaction actually goes up once the kids are gone," says James Bray, Ph.D., a psychologist at Baylor College of Medicine in Houston. After an adjustment period of six to 12 months, spouses often realize that they have more leisure time, more money, and more freedom to reengage with each other. And without children in the house, there's often less cause for conflicts.
New rule: Your marriage can flourish in that new freedom.
When your kids move out, keep your life full and your relationship central. Compile lists of what you and your husband can do now that you couldn't before, suggests Bray, whether it's traveling to Tahiti or having sex on the sofa. "Celebrate! You've succeeded in raising independent adults," he says, "and now you have the opportunity to decide what to do next. Will you get more involved in town politics? Learn to tango? Go out to dinner more often?" Whatever it is, make sure it's something you both enjoy as you rediscover each other.
Myth: Every guy has a midlife crisis — any day, your spouse will drive off in a new red sports car.
It's true that men sometimes do crazy things when they reach a certain age. You may feel like snickering at some of their attempts to regain their lost youth, like the balding executive who gets a spanking-new Harley — or a much younger girlfriend. Such drastic changes are fortunately far from commonplace outside the soaps, but psychologists say that most of us will go through a period of midlife reevaluation.
New rule: It's not a crisis — and it's not just for men.
Actually, this period of reexamination is a healthy part of development. As people move into their 40s, 50s, and beyond, their perspectives shift. Careers may plateau or take off in unexpected new directions. The first serious health problem may come along, or a parent may die and spur you to rethink your priorities. All of these are natural, inevitable transitions, and the best approach to dealing with them is to learn what you can and follow where they lead you. Fortunately, most people do: A recent poll by volunteermatch.org found that more than half of those over 55 are looking forward to starting new chapters in their lives.
More and more the phrase "midlife crisis" is being swapped for "reinvention"; all across America, you can hear men and women talking about their second acts. But rarely do they mean a full-scale life overhaul. More often they're contemplating ways to make more time for what they already love. Men who have done a little woodworking take on a deck redesign; women who have always wanted more time to get in shape sign up for their first triathlon.
Not only are these course corrections good for us as individuals, they also seem to invigorate our relationships. People in their 40s and 50s feel they have more control over their work, their finances, and their marriages, reports a multi-university study. Some crisis, huh? Instead of worrying about his issues, focus on whether you're ripe for reinvention yourself. Rediscover your priorities, and above all, don't feel you're being selfish by pursuing your passion: What's good for
you is good for your marriage, too.
http://www.directron.com/laserkeyboard.html

booting ubuntu from sdhd card

http://rollnpc.blogspot.com/2008/04/install-ubuntu-710-to-sdhc-for-use-on.html
I installed the Advanced desktop as per Wiki.
I then installed Compiz - as per http://technowizah.com/2006/10/debian-h … ompiz.html
So now compiz is working impressively (I just wanted to show off the eeePC) but transparency is not working correctly (setting a window transparent just makes it go dark) - most annoying is that all windows seem to have a transparent border (maybe shadow) that appears black - so I'd like to turn it off.Any idea how to configure compiz in this environment? The config plugin seems to be designed for Gnome and I can't find how to launch it.
Offline


in response:

ok, here's some follow-up info:video will generally not work with compiz, so here's what to do to revert back to the default windows manager if needed:go to your console, make sure you're in root, and type:kwin --replacethat's it, should be good to goTo revert to compiz just type:compiz --replaceok, so that makes one issue tolerable - next -> window size is too long, and locked from dragging above top edge:get the gconf editor: **Note i've added the debian reposis' ala. the wiki, and enabled pinning as shownsudo apt-get install gconf-editorlet it finish, then type in:gconf-editor &go through the logical progression (apps/compiz/general/allscreens/options)scroll to the shortcut for maximize vertically and change from Disabled to:F10now this should take effect immediately, so alt+F10 to bring the windows to sizeok...... its now 4am and i have class in 5 hours..... more to come - from me and hopefully others!!!Please let me know of any results you have - similar or otherwise

II


  • Booting From SD/SDHC
    Many thanks to BlissBryan for posting the details on getting eeebuntu booting from a SD card.

    I've had success in copying the eeebuntu livecd onto an SD card and getting it to boot. I used the techniques outlined here in
    Installation/FromUSBStick to boot the livecd on the SD card. One modification I needed was to edit the kernel command line arguments to include acpi=off in syslinux.cfg otherwise the EEE PC would freeze on bootup.
    This can be done without editing the file by pressing F6 at boot time and check acpi=off on the popup menu. Close the menu and hit enter to boot.
    After this I tried doing a persistent boot outlined here in
    LiveUsbPendrivePersistent. I made my first partition fat32 and the 2nd partition ext3. There is a bug fix outlined in this article called [hardy] livecd: keyword "persistent" results in busybox and (initramfs). I fetched the initrd.gz included in the article and replaced it with the one in the casper directory. So now I am booting the livecd and I have persistence on a 2GB SD flash card.

Saturday, June 28, 2008

This

is how I want my kimberly anne to feel, and it's very reassureing that there are people out there like this.

in response to this:

"naked: libido
In a perfect world, I would wake up early every morning, before the alarm went off, and his hand would already be running up my thigh and he'd be nuzzling my neck and without even opening our eyes, we'd have some of that quiet and slow, easy, early-morning sex, because that is the perfect way to start the day. And if I had my way, every night before we fell asleep, we'd use that last burst of energy left over from the length of the day, like flattening a tube of toothpaste from the bottom, and we'd try to be quiet, but it would be difficult (for me, anyway), and then we'd fall asleep tucked up together, wiped out in the most pleasant way. And if it was the most perfect world ever in the history of them, there would be very long lunches, with pizza ordered in, and Sundays with the bedroom door locked except for brief coffee breaks, and actually, most of Saturday, too.
I like sex. I like to be in a relationship with someone who's got a libido as revved up as mine, too. Previous relationships, it has not worked out that way, the matching up of our sex drives, and it became an issue; painful, terrible, a sticking point. Or rather, a no-sticking point? It was not simply a lack of intimacy, but became, for me, an issue of self-esteem and desire--they didn't want me, anymore. It was my fault, it was my lack of skill, it was weight I had gained, or my inability to satisfy, and it was nothing I could shake, despite any reassurance to the contrary--no, it's not you. But it had to be me, because what else could it be? It's marked me. It's made me equate frequency of sex with level of desire, health of a relationship with how often we do it. As it turns out, we can want to have sex three times a day, but life, it gets in the way. Work gets in the way, and working late, chores and errands and housework and obligations and other people and obligations to other people and you can't. Sometimes, occasionally, when you're living in two separate households, you don't do it at all, in a day. And I have to stop yoking these things together. Yoking it to my self-worth. Believing in the mornings we do have, the evenings, the afternoons, the days we order in pizza. They're more than enough. "


a lady posted this:
"I sometimes read about all these women complaining about how all their husbands want is sex 24/7 and think about how wonderful it must be to feel so desired and wanted all the time, to be the one who gets to say no."

thats how I want my beloved to feel. desired 24/7 even if that means she says no once in a while :]

agreed

this is an article that I read and it hits kinda close to home, cuz I leave next week. oi. anyhow:


"I forget one of the most difficult parts of traveling on my own--not just the awful airplanes you have to face by yourself, the lines you stand in quietly staring off into the middle distance, the tiredness, the being solitary in a place that is not your own. Feeling a little lost, sometimes, feeling a little disorienting, that sense of homesickness that can't be pinned down to a single emotional tone or physical sensation, the way the bed is just not right and the pillows aren't properly lumpy. No matter how good your trip is, how wonderful and fulfilling and brilliant and social and fun, I experience this itchiness, a restlessness, a small, hard-to-define unhappiness. It's not necessarily loneliness, though that is certainly a component of it. It's not a detachedness, because it happens both when I am alone and traveling and when I have come to visit people I love and I am never entirely alone. But I know what it comes from, and why, and I know how to cure it, but the cure is never entirely practical. It requires that I get back on a plane and fly all the way home and walk into the house and wrap myself bodily around my sweetheart and demand to be pet and hugged and cuddled and kissed until that feeling goes away and I am me once more, happy and touched and feeling like I'm part of the human race again.I am a physically affectionate person, but the only way I've ever been able to really indulge that part of me that likes to touch, that needs to be touched and caressed, to have that skin-on-skin contact, that sense of physical pressure and safety and comfort, is in a relationship. My friends allow me to pet them sometimes, and I hug and the people around me accept those hugs, but it's in a relationship that you're expected to be physical, and it's in a relationship that I can indulge my need to express my great and boundless love through the great medium of snugglebunnies. And part of it is also because I have always been self-conscious about the size and shape and physical makeup of my body: when I was fat, I worried that my cuddling the people around me was unwelcome because I was, I don't know, contagious? And that being cuddled in return would end up with the exposure of my fatness to the world, because they'd discover a lump, a roll, something that would make me tense up even more than I'd ordinarily tense up when being touched, even by a friend who was closer than close. I didn't want my body to be examined like a tomato and then compared to her own, er, tomatoes. Now I have to worry about funny-shaped skin making weird-feeling folds, and friends exclaiming, "Oh my god, you're a bag of bones!" No one wants to hear that they are pointy and sharp and unpleasant to squeeze. A partner, though, a partner has seen you naked and has seen you struggling into pantyhose and cursing at stupid zippers and what you look like in the unflattering pants before you change out of the unflattering pants because you went out and demanded that your partner admit, already, that these pants are unflattering, just go on and admit it, okay? A partner knows your body and has touched and loved every part of it, and when you're in your sweetheart's arms, you know you are being touched and you know you are being loved, and you can relax into that in a way that you don't often get to, in other kinds of relationships, because of all sorts of social mores and cues and personal preferences.So maybe that's it--I miss the sense of perfect relaxation. I miss being touched. And okay, I really, really, really miss doing it."

article by anne fitzgerald

Friday, June 27, 2008

I

compiz fusion should work immediately after a fresh ubuntu install. you may want some more effects, so go to System>administration>synaptic package manager. Search for compiz fusion, and mark it for installation, also add the compizconfig manager as well.