Night vision

how to view a pdf file in night vision on a mac desktop similar to android on a mobile ?

Hello kmccmk9
iGlasses 2 offers manual control of some camera settings. One of these is low-light capability that they call "Night Vision." You can take advantage of their free trial to see if it works better than what you already have before you buy.
Contrary to what the iGlasses ad claims, nothing but some kind of lighting device can give you vision in "total darkness", but iGlasses can let you see in light at the lowest levels that your iSight can use.
If you decide not to buy iGlasses, be sure to uninstall it by following the instructions from ecamm. Do not just ignore or throw it away or you may find the the expired trial version causes some strange behavior. You shouldn't be concerned about this cautionary comment. iGlasses is good, reasonably priced, reliable software if you want the features it offers. I include this caution only because some users who ignored the demo expiration or failed to uninstall completely have reported strange problems after the trial expired.
If you need lower light capability than iGlasses gives or plan to use your iSight in a cave or some other real "total darkness" situation, use SteveyJ's suggestions and look for a special-purpose IR camera.
EZ Jim
PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.2)  External iSight

Similar Messages

  • My cat sat on my keyboard and now my desktop display looks like it is in night vision with color. How do I get it back to it's original display?

    My cat sat on my keyboard and changed the display. Now the coloration and brightness looks like it is in night vision with a bit of color. It is similar to one of the photo booth effect options. How do I get it back to normal?

    Hi JoeBeth,
    Welcome to the Apple Support Communities!
    It sounds like your colors have become inverted on your display. This is a feature of Universal Access. Please refer to the attached article for information on this feature with instructions to toggle it on and off. 
    Mac OS X displays inverted image colors (white on black, reverse type)
    Have a great day,
    Joe

  • Connecting Digital Night Vision to Mac

    Hello
    I wasted money on an RCA to USB converter to connect my Yukon Ranger Digital Night Vision Monocular to my Mac to record video of what it captures.
    Is there any WORKING way I can do this?
    The Night Vision has an RCA female output ( works on my LCD TV ) so I need a converter that can allow me to input this in my new Quad Core iMac, any way possible.
    anything available??
    thanks
    Anthony

    Hi -
    If all you want to do is record the output of your device. then:
    http://www.blackmagic-design.com/products/videorecorder/
    if you want to record and edit the footage:
    http://www.bhphotovideo.com/c/product/462758-REG/ADSTechnologies_API_558_EFS_Pyro_A_V_LinkBidirectional.html
    Hope this helps.

  • What software do I need to download from apple to support Logitech Alert 750n Indoor Master System with Night Vision

    What software do I need to download from apple to support the - Logitech Alert™ 750n Indoor Master System with Night Vision?
    Thanks
    Graham

    Contact Logitech and ask them what the system requirements are...

  • How do you add night vision to a film?

    I have to make a movie for my english class and it's suppose to be like Ghost Adventures. However, my camera doesn't have night vision on it. Is there anyway I can add night vision through iMovie?

    Not really, but in iMovie 11 you can use effects to add the SciFi look and video adjustments to make it green. Can't remember if those were in 09.

  • Night vision in After Effects?/ Transferring a style from PS to AE??

    Hi,
    I am just starting out using adobe software, Im currently doing a job for which I need a style/mask to make a video clip look like it was shot in night vision.
    Is there any way I can do that in AE?
    I have done it in photoshop so I have been trying to save it as a style and transfer it to AE but I'm not having any luck!
    Can anyone shine a light on this for me?
    Cheers
    Tim

    A Night Vision animation preset comes with After Effects.
    Type 'night vision' into the search field in the Effects & Presets panel in After Effects.
    For more information about animation presets, see the
    "Animation presets" section of After Effects Help.

  • My pictures look like they are in night vision

    My Ipad's camera appears like it's in night vision mode.  I don't know if there is such a thing, but that's what it looks like.  I can't find any option button to change it.  Also, all photos that I look at in my email, from others, look the same way.  Help please. 

    Check Settings -> General -> Accessibility -> Invert Colors and turn this OFF. Pre iOS 6 this is called White on Black.

  • All my apps with camera or videocams are in night vision. Help!

    All my apps with camera or videocam in my iphone are in night vision. Can somebody help me?
    I've tried everything to get it right again.

    Check Settings -> General -> Accessibility -> Invert Colors and turn this OFF. Pre iOS 6 this is called White on Black.

  • Imagine Dragons album, night vision, songs f****ing me over.

    (Note don't know if this the right community.)
    Ok so I bought the album night vision, and TWO songs are giving me ****: Tiptoes and on top of the world.
    Tiptoes: when either iTunes or me try to download it it gives an error message that it cannot be downloaded.
    On Top of the World: somehow this got removed from my song list. In my songs I click the album and it gives the option to show complete album, I click it and it adds on top of the world in grey. I BOUGHT IT!!! On iTunes however the album says I purchased it and does not give me an iCloud option.
    Please help this is ******* me off.

    Report it here:
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • Camera stuck with night vision type effect

    My camera worked fine for a few days, but now it's stuck with some type of effect that looks like a night vision infrared mode or something. It's all green, and the luma values look like they're reversed or something. It looks that way both on the iphone display, and in the finished picture. I don't see any settings that effect the camera (there are some for photos, but not the actual camera)- do I have some sort of effect turned on, or is it broken? Thanks...

    the only other thing you can try is restoring the software of the iPhone, This will wipe out the info (Only on the iPhone) If that does not resolve the issue then it will need to be serviced either By calling Apple or Going to a Apple Retail Store.
    If you sync to one computer everything should still be on the computer and would sync back up.
    http://docs.info.apple.com/article.html?artnum=305744

  • I am trying now for a week to download the updates for Dropbox, Night Vision

    I download my updates every few days but the three mentioned above will not get done... Any suggestions? Thank you

    Well, since youi did not provide any system info or other details, you might as well try for another week. We know nothing about your operating system, what browsers you use, what network connection and so on. Start here:
    Direct Download Links for Adobe Software
    Troubleshoot Adobe Download Assistant
    Mylenium

  • How do you create your own theme?

    I'm into astronomy and I'd like to create my own theme on my phone (6300) for when I'm at a dark site.  We use red light only at dark sites because white light ruins your night vision for longer.  How can I create a red-based colour theme/wallpaper/text etc?

    Actually, the .nth files used as themes for S40 phones such as the 6300 are very simple and you don't really need any software other than a text editor to create them.
    These .nth files are in fact renamed .zip files. Rename one back to a .zip file, unzip it and look at the structure. At the core of it you have a simple XML file describing the various aspects of the theme. If any media (wallpaper, screensaver, ringtone etc.) is referred to in the XML file it'll be bundled in the archive along with the XML.
    Make any changes you want, zip the lot up again, rename it as a .nth file and you're done.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • Camera Viewfinder - Display Issues

    BB 8100 Smartphone (EDGE) v4.5.0.110 (Platform 2.7.0.90)
    Updated to new version firmware last night to get MMS capability and try to remove sepia like view from camera screen display when taking pictures.  Halfway successful - Can now send MMS with photo attachment.
    Camera still shows sepia like viewfinder.  Sort of like night vision or infrared thermal imaging.  No Option tab in camera settings to select different display or picture mode - eg. Normal, B&W or sepia.
    here are camera setting:
    Default Flash - automatic
    White Balance - auto
    Pic Size - LG (1280 x 1024)
    Pic Quality - Superfine
    Store pics - device memory
    Is problem with camera hardware or maybe new software will fix?
    Pictures turn out fine (were really blurry but improved greatly when I carefully cleaned the lens )

    @Sanjana1
    Welcome!
    Unfortunately we don't get information as to what device you have registered with Nokia upon this forum if you would like to post further details here although presumably N900 in question.
    Happy to have helped forum with a Support Ratio = 42.5

  • Complete failure of PC app

    This is the story of why I would not recommend the PC app to others and would instead encourage them to use steam, gamestop, or finally actually just going to the store.  It started when I installed the app and a few games.  I realized I was running out of hard drive space on my small SSD (120 GB) and wanted to install games on my other hard drive (2TB).  I contacted live support and they told me geek squad would be able to help me.  The first time I contacted geek squad was to try and figure out how to install games into a new location which lots of applications are able to do (iTunes, gamestop app, steam, etc.) and they told me that due to faulty/bad coding you aren't able to do that.  I was a little frustrated at first but it wasn't awful, and so I uninstalled the app along with the 2 15+ GB games I had.  After I tried to re install it, the PC installer kept insisting that I needed to repair the PC app program and not install it.  I contacted the geek squad a second time and this time they told me the only way to uninstall it was to do add/remove programs, which I had already done.  I did a little googling while on hold and figured out that the app has lots of hidden folders and miscellaneous folders scattered throughout my SSD. By the time the geek squad member got back on the phone I was told I needed to reinstall it and unistall it to fix the problem.  I finished doing that and it just left me where I started and didn't solve anything.  At this point I didn't want to contact them anymore due to lack of knowledge and tried to fix the problem myself by using add/remove programs and deleting all the hidden/miscellaneous files around my SSD.  I downloaded a fresh copy of the installer from the website and, much to my annoyance, it wanted to repair the application instead of reinstall it .  The worse part about it this time was that it would not let me completely reinstall the program, stating that I was missing some files or needed to locate them.  I thought this was odd because I was repairing the program so it would replace missing files and if all the files were missing it would just reinstall a fresh copy.  So now I am left with $130 of unplayable games purchased through this worthless app and would like either a refund, or hard copies of the games I tried to download to avoid this god-awful program.
    Call of Duty 4: Modern Warfare - Mac
    Model: 11760 | SKU: 5471792
    SynopsisTake on the world as both a U.S. Marine and a British S.A.S. Soldier in Call of Duty 4. You'll travel across the globe, relying on your wits and weapons to launch all-out assaults and accomplish invisible missions of stealth. Day or night, be ready to do what must be done. It's the most up-to-date collection of firepower, machinery and military vehicles in the Call of Duty series. Prepare to experience the sophisticated technology and unbelievable graphics of an incredibly realistic warfare experience. Experience tomorrow's war today in an immersive series of land and air strikes. Get the job done using the 70 new advanced weapons at your disposal. Make it to the next skirmish via choppers, jets and gunships before the battle is over. Conceal yourself and lie in wait with such accessories as night-vision goggles and ghillie suits, then bust through enemy strongholds in a display of powerful weaponry. Engage in deadly and thrilling battles against players all over the globe in the community-oriented multiplayer modes that feature a robust leveling system, unlockable perks, matchmaking and more. Re-live your favorite kills with the Kill-Cam, and accomplish more than 100 challenges for additional multiplayer excitement. It all comes together in a saga of cinematic intensity.
      Read reviews (0)
    Sale: $29.99
    Call of Duty: Modern Warfare 3 - Windows
    Model: TEST | SKU: 2670151
    SynopsisFight for survival, ensure your mission's success and keep your fellow soldiers safe in epic battles throughout the world as the award-winning Call of Duty franchise makes its triumphant return. Featuring the brutality and intensity that have become cornerstones of this engaging series, Call of Duty: Modern Warfare 3 has you locking and loading for epic battles in which you lay waste to your enemies in devastating hails of gunfire. With the world on the brink of disaster and Makarov stopping at nothing to bring civilization to its knees, you have no choice but to respond. Prepare yourself for adrenaline-pumping, heart-pounding action as you answer the Call of Duty. The thrilling sequel to the multiple Game of the Year award winner, Call of Duty: Modern Warfare 2, Modern Warfare 3 launches you into 16 new, objective-based missions that take you from New York to Paris, Berlin and beyond. As you gain experience, prove your worth in order to rank up in the progression system and earn access to more powerful weapons, redesigned Killstreaks, air support, equipment and abilities, all of which are customizable to your liking. Find out if you and your fellow soldiers have what it takes to survive and keep each other alive in the deadliest of conditions as you take on the all-new, cooperative Survival mode that helps you train for battles to come. Step up the action and defend yourself against swarms of rivals as you join the epic multiplayer battles that launched the series to the top of the gaming world. Now, the multiplayer action is even bigger than ever, with a focus on fast-paced, gun-on-gun combat and a bevy of new features, including a gun progression system and enhanced private match customization. Experience the blood, sweat, grit and glory of war when the astounding power of it comes alive in Call of Duty: Modern Warfare 3.
     3 Read reviews (24)
    Sale: $59.99
    Tom Clancy's Ghost Recon: Future Soldier - Windows
    Model: 68607 | SKU: 9889397
    SynopsisIn the near future, the political climate is as volatile as the battlefield — one wrong move could mean the end. A new breed of soldier has risen from the ashes of the scorched society. A soldier who is trained to be better than the best, a soldier that is outfitted with an arsenal of the most high-tech gear ever assembled — a soldier that can disappear. As Kozak, a soldier in an elite U.S. unit, you're the nation's best and only means of retaliating when a nationalist coup unseats Russia's legitimate president. In these fast-paced, high-stakes missions, the future is now. Tom Clancy's Ghost Recon: Future Soldier places you in the elite squadron of Ghost Recon. Entrusted with missions that no other soldier can handle, your special training in combat, survival and discretion allows you to ensure your mission's success while remaining invisible. Prepare to enter some of the world's most explosive warzones and spectacular locales, from Africa to the Arctic Circle, and protect the world from an ever-present threat. Fight the battle without stepping foot on the battlefield as you control all-new, heavily armed, unmanned ground and air combat drones. Arm yourself to the teeth with an arsenal of more than 50 high-tech weapons, fulfill your mission objectives — and disappear.
     3 Read reviews (2)
    Sale: $49.99

    This program is indeed one of the most poorly written pieces of software I've used.
    I know this topic is old, but hopefully this will help a few people:
    The BBY pc app installer contains an MSI (Windows Installer) package that is the cause of the issue the OP describes. The uninstaller leaves the Windows Installer package behind, and subsequent installs attempt to repair the existing package since it was never removed.
    BBY PC App can be fully removed (I've done it for several friends), but it is a complex process. The directions below assume you have an understanding of Windows Explorer.
    These directions are provided as-is. Use them at your own risk.They worked for me, but there's no guarantee they'll work for you.
    Here's how to remove it (I wrote these directions based upon BBY pc app v3.5.1.2 from Jan 23, 2012):
    1. Open Add/Remove Programs (Programs and Features on Vista/7), and remove pc app as you would normally. You may  also want to uninstall any software downloaded through PC app.
    2. Press Win+R to open Run. Type regedit and click OK. (Editing the registry incorrectly can crash your PC and require you to reinstall Windows. Follow these steps carefully).
    3. On the left side, click the + next to the HKEY_LOCAL_MACHINE registry key to open it. Then repeat to open SOFTWARE, Microsoft, Windows, CurrentVersion, and finally Uninstall.
    4. Click on the first folder listed under Uninstall on the left. Look on the right side for the entry named DisplayName, and check to see if the Data is Best Buy PC App. If it is not, select the next folder under Uninstall. Continue to work down the list until you find a folder that has a DisplayName of Best Buy PC App, or until you reach the end of the list.
    If you reach the end of the list without finding an entry for best buy pc app, skip to step 8.
    5. Write down the name of the folder that contains the Displayname of best buy pc app (the folder name will look something like {FBBC4667-2521-4E78-B1BD-8706F774549B}, numbers and letters might be different ). Close the Registry Editor.
    6. Press Win+R, then type the following: msiexec /i<name> SRCDIR=C:\windows\installer (replace <name> with the folder name you wrote down in step 5.) Note that there is NO SPACE between the /i and the <name>
    An example that removes 3.5.1.2 is msiexec /i{FBBC4667-2521-4E78-B1BD-8706F774549B} SRCDIR=C:\windows\installer
    7. An install wizard with no graphics should appear. If you receive an error or the installer for a different program opens, double check the name of the folder from step 4. Click Next, then click the blank square next to Remove. Confirm the removal.
    8. Show hidden files if they are not already shown. To do this, open Control Panel, then select Folder Options. Select the View tab, then choose "Show Hidden Files and Folders" in the list. Click OK and close Control Panel.
    Windows 7 users may not see Folder Options in control panel. If this is the case, click "Category" in the upper right corner, and select "Small Icons".
    9.
    Windows XP users: Press Win+R, then type %ALLUSERSPROFILE%\Application Data Click OK
    Windows Vista/7 users: Press Win+R, then type C:\ProgramData Click OK
    9. In the window that opens, look for a best buy pc app folder. If it exists, delete the entire folder.
    10. Then, look for a folder whose name starts with a curly brace (" { " symbol). If one exists, open it. Verify that best buy pc app setup.exe is inside. If it is, delete the entire folder. Close the window.
    11. Navigate to C:\Program Files in Windows explorer. If a best buy pc app folder exists, delete it. (Odds are good that this folder will not be there. The uninstall usually removes it).
    12. Press Win+R again, this time type the following and click OK:
    If you have Windows XP: %userprofile%\Application Data
    If you have Windows Vista or 7: %userprofile%\AppData
    13. In the window that opens, look for a best buy pc app folder. If it exists, delete the entire folder. Close the window.
    12. Restart your computer.

  • Regarding JAR files.

    Dear sir,
    I have given the following coding as an assignment from my college.Please help me to solve it.I have to submit in few days. please reply me as soon as possible.
    And assignment is:
    h3. Problem Statement
    You are trapped in a room full of zombies. Luckily the room is pitch black and, while the zombies can't see, you have night vision goggles. To get out though you will have to be careful, since bumping into a zombie is hazardous to your health.
    More specifically, each zombie will have x and y coordinates between 0 and 99 inclusive. You start at (0,0). If you can get to (99,99), you can take an elevator to safety. You may not leave the room any other way. Get there as fast as you can!
    You must implement a method move. This method takes two int[]s, zx and zy, giving the locations of all the zombies, along with ints x and y giving your location. Your method should return "S" to stand still, or "R", "L", "U", or "D" for the four cardinal directions, and "RU", "RD", "LU", or "LD" for the four diagonal directions: {noformat} LU U RU
    L S R
    LD D RD
    {noformat}Moving right increases your x coordinate, while moving down increases your y coordinate.
    After each of your moves, the zombies will all move randomly. Each zombie will chose a random direction (from the 9 including no move) and attempt to move in that direction. If a zombie wants to move outside of the box defined by (0,0)-(99,99) it will stay where it is instead. Note that while the initial locations of all the zombies are distinct, they will not stay that way -- multiple zombies may occupy the same location.
    Each test case will be generated by first choosing a zombie density in [0.05,0.15]. All locations with x or y at least 5 will then contain one initial zombie with probability equal to the density.
    The simulation will be run for a maximum of 10,000 time steps. You may run into zombies at most 10 times -- the 11th one will kill you. If you fail to reach the exit but you manage to stay alive for T time steps, your score will be T. If you make it to the exit at time T, your score will be 30000 - 2 * T plus 1000 per unused life. In other words, you have 10,000 steps to escape, and you get a bonus of 2 points for each time step you don't need to use. Your final score will simply be the average of your individual scores.
    A simple is provided . To use it you need to write a program which communicates via standard IO. Your main method should first read in N, the number of zombies. For each call to move, you should read in N integers for zx, then N integers for zy, and finally two integers for x and y. You should simply output the move you would return. You can run it with something like: {noformat}java -jar Zombie.jar "java Zombie" -delay 1 -seed 1
    {noformat}"java Zombie" is the executable, and should be replaced with whatever command will run your program. The -delay parameter sets the delay in milliseconds between moves. The -seed parameter specifies the random number generator seed (the examples are 1-10). There is also a -novis parameter which causes the simulation to be run with the visualization. Be careful not to output anything other than your moves to standard out. Standard error may be used for debugging purposes"
    "CODING PROVIDED BY COLLEGE"
    import java.util.*;
    import javax.swing.*;
    import java.io.*;
    import java.security.*;
    import java.awt.*;
    import java.awt.event.*;
    public class BrownianZombies extends JFrame{
    int[] zx, zy;
    int x, y;
    int[] idx;
    boolean[][] visited;
    double p;
    Random r;
    int delay = 100;
    boolean novis, history;
    void generate(String seed){
    try{
    r = SecureRandom.getInstance("SHA1PRNG");
    r.setSeed(Integer.parseInt(seed));
    } catch (Exception e) {
    e.printStackTrace();
    int[] tx = new int[10000];
    int[] ty = new int[10000];
    idx = new int[10000];
    visited = new boolean[100][100];
    int ptr = 0;
    p = r.nextDouble()*0.1+0.05;
    for(int i = 0; i<idx.length; i++)idx[i] = i;
    for(int i = 0; i<100; i++)for(int j = 0; j<100; j++){
    if(i >= 5 || j >= 5)if(r.nextDouble() < p){
    tx[ptr] = i;
    ty[ptr] = j;
    ptr++;
    zx = new int[ptr];
    zy = new int[ptr];
    for(int i = 0 ;i<ptr; i++){
    zx[i] = tx;
    zy[i] = ty[i];
    public void move(){
    for(int i = 0; i<zx.length; i++){
    int s = r.nextInt(i+1);
    int t = idx[i];idx[i] = idx[s];idx[s] = t;
    for(int i = 0; i<zx.length; i++){
    int xx = zx[idx[i]] + r.nextInt(3) - 1;
    int yy = zy[idx[i]] + r.nextInt(3) - 1;
    if(xx < 100 && yy < 100 && xx >= 0 && yy >= 0){
    zx[idx[i]] = xx;
    zy[idx[i]] = yy;
    int lives = 10;
    int T;
    public boolean ok(){
    for(int i = 0; i<zx.length; i++)if(x == zx[i] && y == zy[i])lives--;
    return lives >= 0;
    public String checkData(String s){return "";}
    public double runTest(String lt){
    try{
    int time = 10000;
    generate(lt);
    StringBuffer sb = new StringBuffer();
    sb.append(zx.length).append('\n');
    os.write(sb.toString().getBytes());
    os.flush();
    int score = 30000; T = 0;
    if(history)visited[0][0] = true;
    while((x != 99 || y != 99) && T < 10000){
    T++;
    sb.delete(0,sb.length());
    sb.append(zx[0]);
    for(int i = 1; i<zx.length; i++)
    sb.append(' ').append(zx[i]);
    sb.append('\n');
    sb.append(zy[0]);
    for(int i = 1; i<zy.length; i++)
    sb.append(' ').append(zy[i]);
    sb.append('\n').append(x).append(' ').append(y).append('\n');
    os.write(sb.toString().getBytes());
    os.flush();
    String dir = input.next();
    if(dir.equals("S")){
    }else if(dir.equals("R")){
    x++;
    }else if(dir.equals("L")){
    x--;
    }else if(dir.equals("U")){
    y--;
    }else if(dir.equals("D")){
    y++;
    }else if(dir.equals("RU")){
    x++;
    y--;
    }else if(dir.equals("LU")){
    x--;
    y--;
    }else if(dir.equals("RD")){
    x++;
    y++;
    }else if(dir.equals("LD")){
    x--;
    y++;
    }else{
    System.out.println("Invalid Direction: "+dir);
    return 0;
    if(x < 0)x = 0;
    if(y < 0)y = 0;
    if(x == 100)x = 99;
    if(y == 100)y = 99;
    if(!ok()){
    System.out.println("Brains... Score = "+T);
    return T;
    move();
    if(!ok()){
    System.out.println("Brains... Score = "+T);
    return T;
    score -= 2;
    if(!novis){
    if(history)visited[x][y] = true;
    repaint();
    Thread.sleep(delay);
    System.out.println("Score: "+(score + lives * 1000));
    return score + (x != 99 || y != 99 ? 0 : lives * 1000);
    }catch(Exception e){
    e.printStackTrace();
    return 0;
    class Vis extends JPanel{
    public void paint(Graphics g){
    if(zx == null)return;
    Graphics2D g2 = (Graphics2D)g;
    g2.setColor(new Color(200,200,200));
    g2.fillRect(0,0,getWidth(),getHeight());
    Font f = new Font(g2.getFont().getName(),Font.PLAIN,20);
    g2.setFont(f);
    FontMetrics fm = g2.getFontMetrics();
    int th = fm.getAscent();
    int mul = Math.max(1,Math.min((getWidth()-1)/100,(getHeight()-1-2*th)/100));
    int[][] cnt = new int[100][100];
    for(int i = 0; i<zx.length; i++){
    cnt[zx[i]][zy[i]]++;
    for(int i = 0; i<100; i++){
    for(int j = 0; j<100; j++){
    if(cnt[i][j] == 1)g.setColor(Color.red);
    else if(cnt[i][j] > 1)g.setColor(Color.magenta);
    else if(visited[i][j])g.setColor(Color.cyan);
    else g.setColor(Color.white);
    if(i == x && j == y)g.setColor(Color.blue);
    g.fillRect(mul*i+1,2*th+mul*j+1,mul,mul);
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
    String txt = "Moves Made: "+T;
    g.setColor(Color.black);
    g.drawString(txt,0,th);
    txt = "Lives left : "+lives;
    g.drawString(txt,0,2*th);
    static Process pr;
    static Scanner input;
    static InputStream error;
    static DataOutputStream os;
    public static void main(String[] args) throws IOException{
    BrownianZombies b = new BrownianZombies();
    String exec = null;
    String seed = "1";
    for(int i = 0; i<args.length; i++){
    if(args[i].equals("-delay")){
    b.delay = Integer.parseInt(args[++i]);
    }else if(args[i].equals("-seed")){
    seed = args[++i];
    }else if(args[i].equals("-novis")){
    b.novis = true;
    }else if(args[i].equals("-history")){
    b.history = true;
    }else{
    exec = args[i];
    if(exec == null){
    System.out.println("Please enter an executable");
    System.exit(1);
    //for(int i = 0; i<b.zx.length; i++){
    //System.out.println(i+" "+b.zx[i]+" "+b.zy[i]);
    if(!b.novis){
    b.add(b.new Vis());
    b.setSize(450,450);
    b.setVisible(true);
    b.addWindowListener(new Closer());
    pr = Runtime.getRuntime().exec(args[0]);
    input = new Scanner(pr.getInputStream());
    error = pr.getErrorStream();
    os = new DataOutputStream(pr.getOutputStream());
    new ErrorReader().start();
    b.runTest(seed);
    pr.destroy();
    public String displayTestCase(String s){
    generate(s);
    return "p = "+p;
    public double[] score(double[][] d){
    double[] ret = new double[d.length];
    for(int i = 0; i<ret.length; i++)
    for(int j = 0; j<d[0].length; j++)
    ret[i] += d[i][j];
    return ret;
    static class ErrorReader extends Thread{
    public void run(){
    try{
    byte[] ch = new byte[50000];
    int read;
    while((read = error.read(ch)) > 0){
    String s = new String(ch,0,read);
    //System.out.println("err: "+s+" "+s.endsWith("\n"));
    System.out.print(s);
    System.out.println();
    }catch(Exception e){
    //System.err.println("Failed to read from stderr");
    static class Closer implements WindowListener{
    public void windowActivated(WindowEvent e){}
    public void windowDeactivated(WindowEvent e){}
    public void windowOpened(WindowEvent e){}
    public void windowClosing(WindowEvent e){
    pr.destroy();
    System.exit(0);
    public void windowClosed(WindowEvent e){}
    public void windowIconified(WindowEvent e) {}
    public void windowDeiconified(WindowEvent e) {}

    haytony, let me give you a word of advice. The more work you show, the more work the volunteers are often willing to give. For instance, if you've done a ton of research, wrote most of your own code but were stuck on specific points and posted this, the folks here will bend over backwards to lend you a strong hand to help you as much as possible.
    If on the other hand, you simply post your entire assignment and don't show that you've done one speck of work, often we ignore you at best or ridicule you at worst.
    C'mon, it's up to you. Step up to the plate and show us your work, and your worthiness for help. If you can prove yourself to be a hard-working studious type, then I personally will do all in my upmost to help you. If on the other hand you repeatedly spam these forums with pathetic attempts at getting others to do homework where there is absolutely no evidence that you have done a lick of work yourself, then I will ridicule, flame, and bother you to know end.
    So which is it to be? Again, it's all up to you. Time to go to bat.

Maybe you are looking for

  • Error while installation of Addon

    Friends, I get this error while installation of addon. An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) My code works fine when executed directly from Visual Studio. But when i build the addon and t

  • Cannot be synced. The disk could not be read or written to

    I keep getting "+cannot be synced. The disk could not be read or written to+" after it says during the sync process "+importing pictures+". I restarted my iPhone and Mac but still the same problem. I deleted all pictures from my iPhone 4, yet the pro

  • Java Discussion Forum - Post topic not working

    I've deployed the Java Discussion Forum contributed by CLAURENT in Knowledge Exchange. Deployed to 10gAS in JDev 9051. I've modified a few deprecated classes and made the appropraite changes to orion-applications.xml to point to the correct JPDK jars

  • Unit in Key Figure Definition

    Hi, This is very basic question. While defining the key-figure, we heve fields, 'Fixed Unit of Meas.' and 'Unit/Currency' in the 'Type/Unit' tab. Could any one can tell me that what is the difference between these two fields and its significance. Gen

  • Create a website with dreamweaver tutorial video

    Dont waste time trying to learn. Get video tutorials from dreamweaver. Yeas you heard me right. www.webmaniaxs.com