• Welcome to Valhalla Legends Archive.
 

New Worm

Started by Grok, July 19, 2004, 04:27 PM

Previous topic - Next topic

iago

At work I needed a Javascript file for a project I was working on, and Outlook absolutely forbade me from opening it.  It was pretty annoying, there should be a way for users to override it :(

I replied and got him to rename it from .js to .outlooksucks, and it worked.  This was one Linux guy to another, though.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Stealth

#16
Quote from: iago on July 20, 2004, 11:18 PM
At work I needed a Javascript file for a project I was working on, and Outlook absolutely forbade me from opening it.  It was pretty annoying, there should be a way for users to override it :(

I replied and got him to rename it from .js to .outlooksucks, and it worked.  This was one Linux guy to another, though.

This is the same way we circumvented our school's .EXE and .ZIP download blocking setup to install JCreator 2.5 Free on all the lab computers. (We had been using CodeWarrior, but our school's license expired.)
- Stealth
Author of StealthBot

quasi-modo

Quote from: Stealth on July 21, 2004, 12:24 AM
Quote from: iago on July 20, 2004, 11:18 PM
At work I needed a Javascript file for a project I was working on, and Outlook absolutely forbade me from opening it.  It was pretty annoying, there should be a way for users to override it :(

I replied and got him to rename it from .js to .outlooksucks, and it worked.  This was one Linux guy to another, though.

This is the same way we circumvented our school's .EXE and .ZIP download blocking setup to install JCreator 2.5 Free on all the lab computers. (We had been using CodeWarrior, but our school's license expired.)
eh jcreator... used that in ap comp sci. Hey anyone else take that? What did you get on the ap? I just got my score mailed, got a 3.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

Banana fanna fo fanna

ew, you're a smart guy; how'd you pull that off?

quasi-modo

Its hard to tell if you are being serious or sarcastic on this forum lol.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

iago

JCreator sucks. :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Banana fanna fo fanna

Quote from: peofeoknight on July 21, 2004, 09:52 AM
Its hard to tell if you are being serious or sarcastic on this forum lol.

Was serious about the smart guy part.

quasi-modo

#22
Well, I don't know java, I know how to print out useless pyramids of 1s through 3 or 4 recursive statments. My teacher tought me AP style java, how to do it without brackets and how to do things I could easily do with a loop through the use of several recursive statements (like java does not lag enough). So I can't do a single practical thing in java, but I passed the ap. We did not even learn applets or gui  :'(. I am not motivated enough to pick up a book and learn that on my own though.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

Stealth

Quote from: iago on July 21, 2004, 10:45 AM
JCreator sucks. :)

We had all kinds of problems. I guess the word I'd use to describe it would be "moody" -- some of the computers ran it better than others, and inexplicably the same pieces of code would fail with strange compiler errors on some machines but not others.

I also got a 3 on the AP Comp Sci exam, peofeoknight.
- Stealth
Author of StealthBot

quasi-modo

#24
Did your teacher teach you how to print out
               1
             1 1
           1 1 1
         1 1 1 1
       1 1 1 1 1
etc with recursive statements :P
edit: AGH... I cant shape a triangle of the number 1 with this!

APCS code is not real world...
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

Tuberload

public class Pyramid
{    
   public void pyramid (int start, int width)
   {
       if (start%2 == 0)   // prevent even numbers
           --start;
       
       int space;

       if (start < width)
           space = (width-start)/2+1;
       else
           space = 0;
       
       for (int j = 0; j < space; j++)
           System.out.print (" ");
       for (int i = 0; i < start; i++)
           System.out.print ("*");
       System.out.println();
       
       if (start < width)
           pyramid (start+2, width);
   }
}
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

iago

#26
Quote from: Tuberload on July 21, 2004, 10:04 PM
       if (start%2 == 0)   // prevent even numbers
           --start;
}


I would have done:

(start & 1) && --start;

Much more cryptic that way :D

(ps: I'm not sure if Java lets you do that, but eh?)

<edit> aww, you don't.  You need to ust C to do cryptic code like that *sniff*
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


quasi-modo

Quote from: peofeoknight on July 21, 2004, 08:14 PM
etc with recursive statements :P
with recursive statements, not loops. Try it with 3 recursive statements. Its a HUGE pain in the butt. You can do it, its just annoying as heck. And on the ap they ask you what code does, and they give you all this recursive bs, and you have to make a lil drawing with boxes and arrows and numbers so you can get to the answer because values are flowing everywhere. The ap is an example of stuff should not be done, I mean this code would give you a bad stack and make the application just bog the heck down if real programmers did this.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

Tuberload

#28
I used a recursive statement to print out each line.
pyramid (start+2, width);

I don't quite know how to print each individual character recursively. I'll see what I can come up with.

Edit:I think I just figured out a way to do it so I will post my results tomorrow.  :) This is the first recursive method I have ever written.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

quasi-modo

#29
Ok I just saw the loops, I did not look in the last loop. But see how useless and unrealistic this bs is?
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

|