Home

COND system with Define.

  • Nov. 25th, 2009 at 11:03 PM
Hey LISPers. I'm using Scheme. Please don't kill me.

I have a question that I can't seem to answer. Here's the code:

(define final '())

(cond (
(< frst scnd)
(define final (cons final frst))
(define final (cons final scnd))

)

This is what it's supposed to mean:
First, final is defined to null.
We have a condition statement. It states....

If first is less than second, define final by concatenating the variable first to the end of final
then, define final by concatenating the variable second to the end of final.

Of course, it gives me the following error:

define: not allowed in an expression context in: (define final (cons final first))

Any idea why, and how to fix it? :\

Thanks.

Nov. 25th, 2009

  • 3:49 PM
Within 12 hours of moving into a new house, we have received a Victoria's Secret catalogue addressed to "Current Resident".

[info]dnalounge update

  • Nov. 25th, 2009 at 1:29 PM

DNA Lounge update, wherein this battle station is now fully operational.

Tags:

Mussolini's 'brain and blood for sale on internet'

The granddaughter of Italy's fascist dictator Benito Mussolini has said that blood and parts of his brain have been stolen to sell on the internet. Alessandra Mussolini, a former showgirl turned MP, said she immediately informed the police when she found out.

The listing, on auction site Ebay, reportedly showed images of a wooden container and ampoules of blood. The initial price requested for the material was $22,000.

Tags:

Nov. 25th, 2009

  • 11:30 AM
Oops, wrong airport. Luckily it's the airport on the receiving end.

Big Daddy 2

  • Nov. 25th, 2009 at 10:55 AM

Tags:

Nov. 23rd, 2009

  • 11:50 PM
I have spent today applying gdb to the JVM, and after approximately 6 hours of extreme stress, downloading about 4Gb of extra source code, and using nearly every debugging tool in the entire arsenal, I successfully debugged and worked around the issue. I wish this were a more directly marketable skill.

Tomorrow, I will make more actual progress.

Miss, you got a bear on your head.

  • Nov. 23rd, 2009 at 5:19 PM

Nov. 22nd, 2009

  • 8:31 PM
The less I write, the more I fall out of the habit of it.

What is there that I could say? I could talk about Chris not telling me it was his birthday, and letting me find out from the barrista at Barefoot, or about how Dickens rehearsals went. Or the weather, and how I'm constantly cold and fighting windburn when I'm not. Or how the Dollymops appear to have stolen a section wholesale from the Bella Donna show, and how my respect for some people waxes while for others it wanes. Or how I'm waiting on tenterhooks to find out of I'm permanent at my new job, so I can flick the first domino that will eventually, someday, complete the pattern with me getting keys to a house/condo/domicile.

Life, as they say, continues. I'm opening up the floor for questions, I suppose - there, will that do?

stupid CSS tricks

  • Nov. 21st, 2009 at 10:31 PM

Dear Lazyweb,

When you go to the DNA Lounge Webcasts page and click on the "Video Webcast" link, it pops up a chromeless window with the Justin.TV Flash embed in it.

I'd like to make it so that when you resize that window, the embed resizes with it.

This is what I tried. It works great in Safari, but in Firefox, the embed is always 100% wide and 1 pixel tall; and in Opera, it's always 100% wide but about 200 pixels tall.

Ideas?

added to this week's reading list

  • Nov. 22nd, 2009 at 4:47 AM
Max Weber's The Protestant Ethic and the Spirit of Capitalism, recommended by [info]shabda and available free on the web from the University of Virginia.

On that note, what's a good serious economic analysis of post-scarcity systems? This reading list is rather long, but also dates to 2000, and a lot has happened between then and now. Soddy's Wealth, Virtual Wealth and Debt looks like required reading, especially these days, but only has bearing on what I'm looking for. Also, emphasis on serious; goshwow predictions and wouldn't-it-be-neat-if have their place, but Vernor Vinge, Cory Doctorow and Murray Bookchin are all too handwavy.

Tags:

scenes from my living room

  • Nov. 21st, 2009 at 6:16 PM
(SCENE: the couch. SASHA, the cat, is asleep across my forearms while I code.)

([info]maradydd frees an arm from under the cat and pops open a can of Red Bull.)
RED BULL CAN: *crrrack*
SASHA: Mrap!
(SASHA wakes up and starts nosing at the can, with intent.)
[info]maradydd: Sasha. You're a cat. Cats don't need caffeine.
SASHA, attempting to bite the bottom of the can: Ack mrack.
[info]maradydd: No. You don't get Red Bull because you don't have opposable thumbs to open the can with.
SASHA: Hrrrf. *gives up and lies down again*

I can see time!

  • Nov. 19th, 2009 at 12:49 PM

Fake Tree Vortex Threatens to Suck in Entire Backyard

"The wall and floor planes are actually entirely flat and perpendicular, and the tree vortex is an illusion created by the sloping lines."

Tags:

Nov. 19th, 2009

  • 10:30 AM
I just revealed to my boss what I printed on his name badge for our state visit to the Yahoo campus yesterday.[0] He said he didn't look and hadn't noticed. If I'd known that beforehand, I'd have been more inventive! It was my small revenge for what he had printed on my conference badge from New York.[1]

Mind you, now that I think of it, the secretary gets the information from the sign-in and badge printing computer, and I can't imagine her calling an office and saying "Hi. I have Shevek and I didn't read my name badge from Karmasphere to see you." with a straight face.

He has now found his discarded badge and stuck it to the lid of his laptop.

[0] A house joke, not funny elsewhere.
[1] I was dubbed Monsieur Shevek because the computer system didn't like only one name.

Pace-marker

  • Nov. 19th, 2009 at 12:03 AM
I'm totally the internetz slide by me these days. It's a little disorienting - life feels like it goes quicker when I don't have my daily routine of LJ-checkery to mark the hours.

In fact, my LJ subscriptions are scrolling by so fast I pulled six or so feeds and a few more verbose folks off my flist to try and give myself brainspace. We'll see how this goes.

I'm doing too much. There's not enough time. I'm spending all the time I'd normally be running frantically around trying to distract myself from the towering loneliness of the season snuggled up against the boy, getting nothing at all done.

It's not a bad compromise. I'm making up for... let's just say several years of not having that option.

Nov. 18th, 2009

  • 9:44 PM
I'm happy to vary my diet according to what's available locally. Eating the local supermarket food is a major part of living in a place, and travelling for me is very much about living somewhere, not just going there. However, it can take a little while to find the local dietary equivalents for some things, but sometimes it's the variation in prices which can surprise. Consider cheese, and I'll convert all prices into GBP/Kg for a nominal basic cheddar:

  • UK: GBP 6 - 10 / kg
  • US: GBP 14 / kg
  • Canada: GBP 32 / kg (yes, it took me a few minutes to realise)
  • Israel: Hard cheese not available.


On the other hand, I'm flying back to Canada on Friday, and the price of fresh fish in Vancouver is far less than England, so perhaps I'll just live off that.

Edit: I never understood this pre-sliced cheese thing. Do pepole not own knives?

Profile

[info]joel
Joel Franusic
Website

Advertisement

Latest Month

March 2009
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    
Powered by LiveJournal.com
Designed by Lilia Ahner