Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it, follow these directions. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given their own forum. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!

Dr. Ri[CHAT]e's doom-monkeys

15354555658

Posts

  • CantideCantide Registered User regular
    stilist wrote: »
    What’s the simplest way for me to find the number of times a given string appears in a body of text? Note that the text is on a single line. (I want to find out how many occurrences of sup_id are in the JSON I just dumped from FriendFeed).

    I tried cat ff.json |grep sup_id |wc but that gives me 49208, which seems more than ten times too high.

    Can you use perl? If so,

    my @some_array = split(/sup_id/, $argv[0]);
    my $num_occurences = $#some_array;
    print $num_occurences . "\n";

    should do the trick.

    2v0ltm9.jpg
  • NerdgasmicNerdgasmic __BANNED USERS regular
    Man, the finale is the best part of Dr. Horrible.

    @nealcm @faynor
    nerdgasmic.gif1420 6068 6113 - XBL Atomoclassic
  • stiliststilist Registered User
    Cantide wrote: »
    stilist wrote: »
    What’s the simplest way for me to find the number of times a given string appears in a body of text? Note that the text is on a single line. (I want to find out how many occurrences of sup_id are in the JSON I just dumped from FriendFeed).

    I tried cat ff.json |grep sup_id |wc but that gives me 49208, which seems more than ten times too high.
    Can you use perl? If so,

    my @some_array = split(/sup_id/, $argv[0]);
    my $num_occurences = $#some_array;
    print $num_occurences . "\n";

    should do the trick.
    Hm... I don’t think I’ve ever written a line of Perl, but your idea is useful.

    I poop things on my site and twitter
  • WashWash Registered User regular
    Nocturne wrote: »
    West Side Story was one of the first musicals I ever went to see. It is awesome.

    Les Miserables was the second one, and it is what made me get into theater.

    I want to see Les Miserable so baaaaaaaaaad

    annakarinasig1.jpg
  • CouscousCouscous Registered User regular
    What are some really good musicals?

  • FeralFeral Who needs a medical license when you've got style? Registered User regular
    stilist wrote: »
    stilist wrote: »
    What’s the simplest way for me to find the number of times a given string appears in a body of text? Note that the text is on a single line. (I want to find out how many occurrences of sup_id are in the JSON I just dumped from FriendFeed).

    I tried cat ff.json |grep sup_id |wc but that gives me 49208, which seems more than ten times too high.
    Sorry, I suck at unix I would just write a scanner in java or C.
    Yeah, if I were better at coding I’d knock out a script. I may have to.

    Though actually I don’t even remember why I wanted this. Maybe so I could filter entries? I don’t know. I think I want the JSON library.

    I'd probably write something in PERL to do it.

    Or if I was feeling really stupid and didn't want to bother with PERL, I'd just import it into a spreadsheet or a database program and tell the app that 'sup_id' was the record delimiter. Then I'd see how many records it came up with.

    I am comforted by Richard Dawkins’ theory of memes. Those are mental units: thoughts, ideas, gestures, notions, songs, beliefs, rhymes, ideals, teachings, sayings, phrases, clichés that move from mind to mind as genes move from body to body. After a lifetime of writing, teaching, broadcasting and telling too many jokes, I will leave behind more memes than many. They will all also eventually die, but so it goes. - Roger Ebert, I Do Not Fear Death
  • Me Too!Me Too! __BANNED USERS
    Nerdgasmic wrote: »
    Man, the finale is the best part of Dr. Horrible.

    Nuh uh, On The Rise and Brand New Day are

    The best moment though is "My penis is the hammer"

  • FeralFeral Who needs a medical license when you've got style? Registered User regular
    Or hell just use a word processor to do a global search and replace on 'sup_id'. Most word processors will complete the process with a message saying "Found and replaced 42908 instances" or something like that.

    I am comforted by Richard Dawkins’ theory of memes. Those are mental units: thoughts, ideas, gestures, notions, songs, beliefs, rhymes, ideals, teachings, sayings, phrases, clichés that move from mind to mind as genes move from body to body. After a lifetime of writing, teaching, broadcasting and telling too many jokes, I will leave behind more memes than many. They will all also eventually die, but so it goes. - Roger Ebert, I Do Not Fear Death
  • radroadkillradroadkill MDRegistered User regular
    OptimusZed wrote: »
    Quid wrote: »
    yalborap wrote: »
    WANT PRESENTS.

    (I didn't sleep last night- I'll probably bitch out before midnight tonight to make up.)

    Edit: zomg, Chicago!!! I saw it on Broadway. (:

    Bah! Hold firm, get your presents!
    It doesn't do her any good if I go to bed. She doesn't know where I hid them.
    It's unfortunate for her that it's getting late enough that properly exercising her feminine wiles will probably segway into sleep.

    Meh. I did that earlier. I can't do it ALL the time or it loses its effectiveness.

    Nerdgasmic wrote: »
    Like some sort of raptor or the Great panda, Rad cannot properly initiate egg preparation if she senses a disturbance within her environment.
  • FeralFeral Who needs a medical license when you've got style? Registered User regular
    I need a haircut.

    I am comforted by Richard Dawkins’ theory of memes. Those are mental units: thoughts, ideas, gestures, notions, songs, beliefs, rhymes, ideals, teachings, sayings, phrases, clichés that move from mind to mind as genes move from body to body. After a lifetime of writing, teaching, broadcasting and telling too many jokes, I will leave behind more memes than many. They will all also eventually die, but so it goes. - Roger Ebert, I Do Not Fear Death
  • ThanatosThanatos Registered User regular
    Brand New Day is by far the best song in that musical.

  • ThanatosThanatos Registered User regular
    Feral wrote: »
    I need a haircut.
    I just got one today.

  • PowerpuppiesPowerpuppies Registered User regular
    Quid your sig terrifies me, I just learned that Obama is fake black.

    sig.gif
  • radroadkillradroadkill MDRegistered User regular
    Feral wrote: »
    I need a haircut.

    Omg, me too!

    Nerdgasmic wrote: »
    Like some sort of raptor or the Great panda, Rad cannot properly initiate egg preparation if she senses a disturbance within her environment.
  • MazzyxMazzyx Changing the World Order. Registered User regular
    Nerdgasmic wrote: »
    Man, the finale is the best part of Dr. Horrible.

    I kind of want to see this in a live version. Mainly for Neil Patrick Harris. But it would be kind of cool as a stage production.

    falasig.png
  • CouscousCouscous Registered User regular
    Nocturne wrote: »
    West Side Story was one of the first musicals I ever went to see. It is awesome.

    Les Miserables was the second one, and it is what made me get into theater.

    I want to see Les Miserable so baaaaaaaaaad

    I wish I lived near anyplace that had decent theaters.

  • QuidQuid The Fifth Horseman Registered User regular
    Quid your sig terrifies me, I just learned that Obama is fake black.
    's true.

    If that woman's cleavedge made one more person pick the game up off the shelf, it was a net positive for microprose. And to be blunt, if taking her top off could have increased sales enough to get a sequel, I'd endorse it 100000% because I like playing great games.
  • ElendilElendil Registered User regular
    gaaaaaaaay

    I like opera

    Per3th.jpg
  • NocturneNocturne Registered User regular
    Quid your sig terrifies me, I just learned that Obama is fake black.

    This was one of my favorite things to respond to during the election.

    Some Dumbshit: Obama's only half black, he's not really black.

    Me: His father WAS FROM FUCKING KENYA! How do you get more African American than that?

    Some Dumbshit: ....

  • MazzyxMazzyx Changing the World Order. Registered User regular
    Couscous wrote: »
    What are some really good musicals?

    Some of my favorites which I have seen are Rent, Les Mis (I saw it in London), Jekyll and Hyde, Chicago and Martin Guierre(I saw the original London production, the US one was different).

    I want to see Avenue Q, it's supposed to be awesome.

    falasig.png
  • ThanatosThanatos Registered User regular
    Seriously, how the fuck can you people listen to Radiohead?

    You may as well be listening to Phish or some bullshit like that.

  • stiliststilist Registered User
    Cooooool, worked it out in Ruby.

    Thanks Cantide!

    I poop things on my site and twitter
  • RonaldoTheGypsyRonaldoTheGypsy I'm da BEST! Registered User regular
    They have some decent songs. There are a lot of artists out there. There is little music I actively dislike.

    I don't see the problem with that.

    toadsig.jpg
  • monikermoniker Registered User regular
    Me Too! wrote: »
    Nerdgasmic wrote: »
    Man, the finale is the best part of Dr. Horrible.

    Nuh uh, On The Rise and Brand New Day are

    The best moment though is "My penis is the hammer"

    hammer.jpg

    tea-1.jpg
  • ElendilElendil Registered User regular
    They have some decent songs. There are a lot of artists out there. There is little music I actively dislike.

    I don't see the problem with that.
    they have a couple of decent songs

    the rest are fucking great songs

    Per3th.jpg
  • stiliststilist Registered User
    txt = open("ff.json").read
    cnt = txt.split("twitter.com/stilist")
    puts cnt.length

    I poop things on my site and twitter
  • NocturneNocturne Registered User regular
    This song will forever and always remind me of taking psychedelics.

    http://www.youtube.com/watch?v=21Zd8xPUQs8

  • RonaldoTheGypsyRonaldoTheGypsy I'm da BEST! Registered User regular
    Elendil wrote: »
    They have some decent songs. There are a lot of artists out there. There is little music I actively dislike.

    I don't see the problem with that.
    they have a couple of decent songs

    the rest are fucking great songs

    I'm not very familiar with their first albums - I am very familiar with in rainbows which happens to be a very love or hate album to most people.

    toadsig.jpg
  • Loren MichaelLoren Michael Registered User regular
    Thanatos wrote: »
    Seriously, how the fuck can you people listen to Radiohead?

    You may as well be listening to Phish or some bullshit like that.

    It's a little like Plato's cave allegory. You'll probably never understand.

    2ezikn6.jpg
  • Me Too!Me Too! __BANNED USERS
    Elendil wrote: »
    They have some decent songs. There are a lot of artists out there. There is little music I actively dislike.

    I don't see the problem with that.
    they have a couple of decent songs

    the rest are fucking great songs

    Would you say any of them are as perfect as a wizard's hat

  • monikermoniker Registered User regular
    Mazzyx wrote: »
    Couscous wrote: »
    What are some really good musicals?

    Some of my favorites which I have seen are Rent, Les Mis (I saw it in London), Jekyll and Hyde, Chicago and Martin Guierre(I saw the original London production, the US one was different).

    I want to see Avenue Q, it's supposed to be awesome.

    God I can't wait for that to come back to Chicago at some point. It's been like a motherfucking decade already you homps.

    tea-1.jpg
  • WashWash Registered User regular
    Nocturne wrote: »
    Quid your sig terrifies me, I just learned that Obama is fake black.

    This was one of my favorite things to respond to during the election.

    Some Dumbshit: Obama's only half black, he's not really black.

    Me: His father WAS FROM FUCKING KENYA! How do you get more African American than that?

    Some Dumbshit: ....

    African America =/= black.

    annakarinasig1.jpg
  • ElendilElendil Registered User regular
    Elendil wrote: »
    They have some decent songs. There are a lot of artists out there. There is little music I actively dislike.

    I don't see the problem with that.
    they have a couple of decent songs

    the rest are fucking great songs

    I'm not very familiar with their first albums - I am very familiar with in rainbows which happens to be a very love or hate album to most people.
    it is not a hate album to any people

    those are not actually people

    Per3th.jpg
  • monikermoniker Registered User regular
    Thanatos wrote: »
    Seriously, how the fuck can you people listen to Radiohead?

    You may as well be listening to Phish or some bullshit like that.

    It's a little like Plato's cave allegory. You'll probably never understand.

    Does it involve blind elephants?

    tea-1.jpg
  • _J__J_ Pedant Registered User regular
    I'm supposed to what now?

    Wydrion wrote: »
    ...Or you can sit around in the thread calling _J_ a cocksucker, you know, whatever's more constructive.
  • projectmayhemprojectmayhem Registered User regular
  • NocturneNocturne Registered User regular
    Nocturne wrote: »
    Quid your sig terrifies me, I just learned that Obama is fake black.

    This was one of my favorite things to respond to during the election.

    Some Dumbshit: Obama's only half black, he's not really black.

    Me: His father WAS FROM FUCKING KENYA! How do you get more African American than that?

    Some Dumbshit: ....

    African America =/= black.

    Right, doesn't make the above any less true.

  • WashWash Registered User regular
This discussion has been closed.