[new] openthreads, producer and openscenegraph

I'm trying out OpenSceneGraph at the moment. Here's the PKGBUILD files I used to make the package and also the ones for its dependencies OpenThreads and Producer.
The openscenegraph package took about 1.5 hours to build on my Celeron 2Ghz, though. Also, I'm quite sure it doesn't have all the dependencies, OSG uses a whole bunch of image libraries and needs X too of course.
# $Id $
# Contributor: bjorn <[email protected]>
pkgname=openthreads
pkgver=1.3
pkgrel=1
pkgdesc="A lightweight OO thread interface for C++"
url="http://openscenegraph.sourceforge.net/"
depends=('glibc')
source=(http://heanet.dl.sourceforge.net/sourceforge/openscenegraph/OpenThreads-$pkgver.tar.gz)
md5sums=('a1d792ae4ce38590ff498e0c7d9ad939')
build() {
cd $startdir/src/OpenThreads
make || return 1
make INST_LOCATION=$startdir/pkg/usr install
# $Id $
# Contributor: bjorn <[email protected]>
pkgname=producer
pkgver=0.8.5
pkgrel=1
pkgdesc="A C++/OpenGL library that is focused on camera control"
url="http://openscenegraph.sourceforge.net/"
depends=('openthreads')
source=(http://heanet.dl.sourceforge.net/sourceforge/openscenegraph/Producer-$pkgver-3.tar.gz)
md5sums=('2e4e5a9e2399398dd8f7597245b2f69d')
build() {
cd $startdir/src/Producer
make || return 1
make INST_LOCATION=$startdir/pkg/usr install
# $Id $
# Contributor: bjorn <[email protected]>
pkgname=openscenegraph
pkgver=0.9.7
pkgrel=1
pkgdesc="An open source high performance graphics toolkit"
url="http://openscenegraph.sourceforge.net/"
depends=('openthreads' 'producer')
source=(http://heanet.dl.sourceforge.net/sourceforge/openscenegraph/OpenSceneGraph-$pkgver-2.tar.gz)
md5sums=('05f23e2ad06f3f9cab8ae987a919a5c2')
build() {
cd $startdir/src/OpenSceneGraph
make || return 1
make INST_LOCATION=$startdir/pkg/usr install
# Remove examples
rm -rf $startdir/pkg/usr/share

Thanks for the compliments. :-)
G3D looks interesting, but I don't have time to try making a package for it at the moment. I might be tempted to try to make one later. I made the OpenSceneGraph package set just because I wanted to try it out and had the time to do it, as with any package I've made.
PKGBUILDs:
http://www.lindeijer.nl/~bjorn/abs/

Similar Messages

  • Current 1TB computer dying.  Installing new 3TB drive next Thursday.  Can I just go directly to my account and install Creative Cloud with Proshow Producer and Bridge with a hastle?

    Current 1TB computer dying.  Installing new 3TB drive next Thursday.  Can I just go directly to my account and install Creative Cloud with Proshow Producer and Bridge with a hastle?

    When I look at the forum index Welcome | Adobe Community I do not find a program called proshow
    Cloud Getting Started https://helpx.adobe.com/creative-cloud/topics/getting-started.html
    or
    http://forums.adobe.com/community/download_install_setup/creative_cloud_faq

  • New to PRE and need feedback on my system build

    I played around with the trial version on my old computer and decided to go ahead and purchase PRE 9 and PSE 9 together. I have built a few PC's in my day and recently completed my current build running my purchased software. I was hoping that I could get some feedback on what I have and what I might change to get better performance. PRE is very jittery when scrolling through content and playing back the timeline. Sometimes I don't even see a transition. I am new to video editing in general and capture in HD with my Canon HF S100, so I am planning on editing in HD as well. Sorry for the NoBo question, but my machine smokes until I fire up PRE. I may be using the application incorrectly, but I am assuming that my low end video card, is an area of concern/bottleneck. I don't want to blow $800 on a Quadro 4000 if it won't make a huge difference, but I assume it will. Thanks in advance for any and all help.
    High level build
    MoBo - ASUS P6X58D Premium LGA 1366 Intel X58 SATA 6Gb/s USB 3.0 ATX Intel Motherboard
    PSW - CORSAIR HX Series CMPSU-620HX 620W ATX12V v2.2 and EPS12V 2.91 SLI Certified
    Proc - Intel Core i7-950 Bloomfield 3.06GHz LGA 1366 130W Quad-Core Processor
    Mem - 12GB Mushkin Enhanced Redline 240-Pin DDR3 SDRAM
    Drives
         OS - Crucial RealSSD C300
         Media - Western Digital VelociRaptor WD6000HLHX 600GB 10000 RPM SATA 6.0Gb
    OS - Windows 7 x64 SP1
    Video - NVIDIA GeForce 9500 GT
    Detailed DxDiag output below.
    System Information
    Time of this report: 2/27/2011, 19:30:14
    Operating System: Windows 7 Ultimate 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_rtm.101119-1850)
    Language: English (Regional Setting: English)
    System Manufacturer: System manufacturer
    System Model: System Product Name
    BIOS: BIOS Date: 05/25/10 14:57:23 Ver: 08.00.15
    Processor: Intel(R) Core(TM) i7 CPU         950  @ 3.07GHz (8 CPUs), ~3.1GHz
    Memory: 12288MB RAM
    Available OS Memory: 12280MB RAM
    Page File: 8908MB used, 15647MB available
    Windows Dir: C:\Windows
    DirectX Version: DirectX 11
    DX Setup Parameters: Not found
    User DPI Setting: Using System DPI
    System DPI Setting: 96 DPI (100 percent)
    DWM DPI Scaling: Disabled
    DxDiag Version: 6.01.7601.17514 32bit Unicode
    Display Devices
    Card name: NVIDIA GeForce 9500 GT
    Manufacturer: NVIDIA
    Chip type: GeForce 9500 GT
    DAC type: Integrated RAMDAC
    Display Memory: 4069 MB
    Dedicated Memory: 997 MB
    Shared Memory: 3071 MB
    Current Mode: 1920 x 1080 (32 bit) (60Hz)
    Monitor Name: Generic PnP Monitor
    Monitor Model: ASUS VH242
    Monitor Id: ACI24FA
    Native Mode: 1920 x 1080(p) (60.000Hz)
    Output Type: DVI
    Driver Name: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
    Driver File Version: 8.17.0012.5896 (English)
    Driver Version: 8.17.12.5896
    DDI Version: 10
    Driver Model: WDDM 1.1
    Driver Attributes: Final Retail
    Driver Date/Size: 7/10/2010 04:38:00, 12471400 bytes
    WHQL Logo'd: n/a
    WHQL Date Stamp: n/a
    Driver Strong Name: oem3.inf:NVIDIA_SetA_Devices.NTamd64.6.1:Section003:8.17.12.5896:pci\ven_10de&dev_0640
    Rank Of Driver: 00E62001
    Video Accel: ModeMPEG2_A ModeMPEG2_C ModeVC1_C ModeWMV9_C
    D3D9 Overlay: Supported
    DXVA-HD: Supported
    DDraw Status: Enabled
    D3D Status: Enabled
    AGP Status: Enabled

    This ARTICLE will give you some tips on your I/O sub-system setup for video-editing.
    As for the Scratch Disks, think of those as the "working files," that PrE produces and needs to edit video. Part of those will be the Media Cache, where you will have the CFA (Conformed Audio) files, the PEK files for Waveform Display, etc. For a bit of background on Conforming, see this ARTICLE.
    Now, for ultimate performance, one would want to spread the I/O load over as many discs, as is possible. The OS and programs accessing the HDD is a given, but you have already segregated them onto C:\. Then, one has the Scratch Disks, which also require quite a bit of access. The media is accessed often for many operations, and then there is the need to Export/Share. In a perfect world, one would allocate a separate HDD for each of those operations, with one caveat: when one has finished a Project, there will then be the cleanup of the files. If one has spread the Project over multiple physical HDD's, they must go to each, and do the cleanup. OTOH, and at the sacrifice of ultimate spead with I/O access, if one has placed their Project into a root folder, say [Project Name], and then accepted the default location for the Scratch Disks, for Same As Project, all they have to do is Delete that Project Name root folder, and everything else comes with it. As I migrate Projects between computers, I locate everything in a Project Name root folder on an external, and then everything is below that folder structure. For media, I leave my Assets on an NAS, and just Copy over what I need to the various media sub-folders, like Video, Stills, Music, Audio, etc. I give up performance, but have everything that I need to move the Project about, and cleanup is easy. In my case, each external has a permanent drive letter assignment in the OS of each computer, so that drive Z:\ is always Z:\ on each computer, and regardless of what else might be plugged-in to that computer. Makes life simple for me.
    Hope that this helps.
    Good luck,
    Hunt

  • Want to open a new browser window and display the html file in locale disk.

    Hi,
    I want to open a new browser window and display the html file in local drive. The below html applet work in local system successfully. But i deploy the same in web server (Tomcat) and try the same in client machine it does not work. Please help.
    Note:
    The class below fileopen.FileOpen.class i make it as a jar and put it in jre\ext folder at the client machine.
    ------------------------------------FileOpen.html(Tomcat)-----------------------------------------------------
    <html>
    <body >
    <applet code="OpenFile.class" archive="loadfile.jar" width="100" height="100">
    <param name="path" value="file://c:/open.html" />
    </applet>
    </body>
    </html>
    -------------OpenFile.java in server(Tomcat)--------------------------------------------
    public class OpenFile extends Applet implements ActionListener{
    String path = "";
    fileopen.FileOpen open = null;
    Button b = null;
    public void init(){
    path = getParameter("path");
    b = new Button("Open");
    b.addActionListener(this);
    add(b);
    public void actionPerformed(ActionEvent ae){
    try
    open = new fileopen.FileOpen(this,path);
    catch (Exception e){
    e.printStackTrace();
    -------------------------------------------FileOpen.java /Client JRE/ext----------------------------------------------------
    package fileopen;
    public class FileOpen
    AppletContext context = null;
    URL url = null;
    public FileOpen(Applet applet,String path)
    try
    if(null != applet){
    context = applet.getAppletContext();
    if (null != path)
    url = new URL(path);
    context.showDocument(url, "_blank");
    }catch(Exception ex)
    ex.printStackTrace();
    Please help to solve this issue very urgent.
    Thanks in advance.
    By,
    Saravanan.K.

    zzsara wrote:
    I want to open a new browser window and display the html file in local drive. ...Did you ever pause to consider how ridiculous that is?
    The best audience for applets is people off the internet. 'People off the internet' might be using a computer that has no (what was it?) 'open.html' in the root of the C: drive. In fact (shock horror) they may not even be running Windows, and would therefore probably have no 'C:' drive at all.
    If you do not intend to distribute this to people off the web, an application makes a lot more sense, but even then, you cannot rely on the document being there unless you 'put it there' (during installation, for instance).
    As the other poster intimated, applets can load documents off the local disk as long as they are trusted. Here is an example*, but note that it is not so rash as to presume any particular path or file, and instead leaves it to the user to choose the document to display.
    * The short code can be seen at SDNShare on the [Defensive Loading of Trusted Applets|http://sdnshare.sun.com/view.jsp?id=2315] post.
    On the other hand, a sandboxed applet can load any document coming from its own server via URL, or get showDocument(URL) to work. In that case, the JRE must recognize that the URL is from its own server, so the best way to form URLs for applet use is via the URL constructor
    new URL(getDocumentBase(), "path/to/open.html");That is how I form the URL in this [ sandboxed example of formatting source|http://pscode.org/fmt/sbx.html?url=/jh%2FHelpSetter.java&col=2&fnt=2&tab=2&ln=0]. Of course, in this case the applet loads the document, then parses the text to draw the formatted version, but the point is that an URL produced this way will work with showDocument(URL).
    I am pretty sure showDocument() in an applet off the internet will work with an URL pointing to a foreign (not its own) server, but it will not be able to load documents off the end user's local disks.
    I suggest a couple of things.
    - Try to express this problem in terms of what feature it is that you want to offer the end user. Your question jumps directly to a bad strategy for achieving ..who knows what? An example of a feature is "Shows the applet 'help' files on pressing F1".
    - A good way to indicate interest in a solution is to offer [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match that interest.
    Edit 1:
    ..and please figure out how to use the CODE tags.
    Edited by: AndrewThompson64 on Sep 12, 2008 11:14 PM

  • New to mac and iphoto, questions about photo structure & organization

    I bought a new Macbook Pro a couple of days ago and am still figuring things out. I wasn't displeased with windows...I just decided to try a mac anyway, So far, I adore it except for one thing, the pictures.
    I spent hours researching whether to download and use picasa 3 for mac or iphoto. I decided on picasa....and now I've changed my mind. (Mostly because I tried to take pictures of the moon tonight, and they looked great in camera, but Picasa could only pick up a black screen whearas iphoto actually saw and defined the moon- and with the editing software on the two, the picasa auto-edit looked like a picture that was created in microsoft paint, and iphoto came out with a beautifully contrasted photo).
    Now that I decided to use iphoto, I have been researching how to switch and still seem to have a lot of questions. (I've poked around numerous forums but have found conflicting answers on different sites).
    1) I organize my pictures by folders with the month and year. I know iphoto organizes events, which it seems to determine based on photo similarity. Will my photo structure still appear in finder -> pictures?
    2) Is it possible to stop iphoto from organizing my pictures and just trust me on what I want?
    3) All of my friends and family use PCs, and there is a chance that due to financial concerns, when I eventually replace my macbook pro (far in the future) I could switch to a pc. Does iphoto make transferring pictures more difficult? (If I understand correctly, it does not change the photo file, a jpeg is still a jpeg but I want to be sure)
    4) I do not want iphoto to duplicate all of the pictures already in my library....if I import from finder-users-pictures, will it simply use those, or duplicate all 150gb worth of pictures?
    5) Any other tips for someone completely new to macs and iphoto?
    6) This is very silly, but how do I uninstall picasa (I know how to uninstall on a windows but want to make sure I do things correctly on my mac!)
    Also, just a "bonus"- regarding events vs. files I create, will iphoto create events within the program but leave my file structure in the library it imports from alone? If I use finder to go to where I store my photos, will I still see my file structure regardless of what iphoto does?(Does that make sense? I'm having a hard time trying to describe it)
    I apologize if this question is foolish or misplaced- I did read many other posts but didn't see the answers I was looking for.

    Your questions are neither foolish nor misplaced.
    The first thing I strongly suggest is that you make a trial iPhoto Library. Import 100 or 200 pics and explore. Iphoto isn't right for everybody, and if you're going to use it you will need to rethink things a little.
    1) I organize my pictures by folders with the month and year. I know iphoto organizes events, which it seems to determine based on photo similarity. Will my photo structure still appear in finder -> pictures?
    A: Events are based entirely on Date and Time not on 'photo similarity' You can set the interval for what makes an Event in the iPhoto Preferences: iPhoto Menu -> Preferences -> General Pane: Autosplit into Events... And select from the drop down menu.
    Will my photo structure still appear in finder -> pictures?
    Yes or no, depending... iPhoto can run as a Referenced or Managed Library. In the former case, yes you files will be visible in the Finder, in the latter case they won't.
    Note that Referenced or Managed refers +only to file storage+ It offers no extra functionality, it does nothing at all. App like iPhoto are your go-to app for your photos. If you use it, then you never access the photos via the Finder. Ever. It's always via iPhoto or the many, many hooks into the OS that it has.
    I'll detail more on Referenced v Managed below.
    2) Is it possible to stop iphoto from organizing my pictures and just trust me on what I want?
    I'm not sure what you mean by this. Iphoto does basic date and time organisation by default. You can change it, you can change the location of the photos in Events, merge them and then using the other tools available - Albums, Smart Albums, Faces, Places etc you can organise your photos whatever way you want.
    But what do you mean by pictures. There is a distinction between Photos - the image of your child holding his dog - and files: A Jpeg is just a file. Iphoto is designed for you to +forget about the jpeg+ and get on with the interesting bit: the pics of your younger and his pet.
    3) All of my friends and family use PCs, and there is a chance that due to financial concerns, when I eventually replace my macbook pro (far in the future) I could switch to a pc. Does iphoto make transferring pictures more difficult? (If I understand correctly, it does not change the photo file, a jpeg is still a jpeg but I want to be sure)
    A Jpeg is a Jpeg is a Jpeg. If you migrate to another app or an entire OS you can export the photos plus any and all metadata you've added to the Finder and move it on. (Caveat: You cannot export Faces. There is no agreed standard on any system for exchanging this info.)
    4) I do not want iphoto to duplicate all of the pictures already in my library....if I import from finder-users-pictures, will it simply use those, or duplicate all 150gb worth of pictures?
    It can do either. And this brings me back to the Referenced v Managed discussion above. By default, iPhoto will Manage the files, that is, it will copy them into the Library. You can choose not to, but I strongly recommend that you don't:
    *How to do it:*
    Simply go to iPhoto Menu -> Preferences -> Advanced and uncheck 'Copy Files to the iPhoto Library on Import'.
    *What Happens:*
    Now iPhoto will not copy the files, but rather simply reference them on your HD. To do this it will create an alias in the Originals Folder that points to your file. It will still create a thumbnail and, if you modify the pics, a Modified version within the iPhoto Library Folder.
    *Some things to consider:*
    1. Importing and deleting pics are more complex procedures. You have to to put the files where they will be stored before importing them. When you delete them you'll need to remove the files from the HD yourself.
    2. You cannot move or rename the files on your system or iPhoto will lose track of them on systems prior to 10.5 and iPhoto 08. Even with the later versions issues can still arise if you move the referenced files to new volumes or between volumes.
    3. Most importantly, migrating to a new disk or computer can be much more complex.
    4. Because iPhoto has no tools for managing Referenced Files, if, for some reason, the path to the photos changes then you could find yourself resolving aliases for +each photo in the Library+ one by one.
    My own opinion:
    I've yet to see a good reason to run iPhoto in referenced mode unless you're using two photo organisers
    If disk space is an issue, you can run an entire iPhoto Library from an external disk:
    1. Quit iPhoto
    2. Copy the iPhoto Library as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    If you're concerned about accessing the files, There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 and later*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    *For users of 10.4 and later* ...
    Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    For users of 10.6 and later:
    You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and later:
    Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    *If you want to edit the photo in another application:*
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    5) Any other tips for someone completely new to macs and iphoto?
    *To Push Home a point*
    For someone inexperienced with Macs and inexperienced with iPhoto I cannot stress enough that Managed Library is the way to go. I understand there is comfort in seeing all those folders. But inside the Library that's all there is: all those folders, stored so that an inexperienced user can't grub things up!
    The iPhoto Library Folder is a Package File. This is simply a folder that looks like a file in the Finder. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves. Want to see inside?
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Standard Warning: Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    Now close that window and forget about it.
    So, once you've imported your photos to iPhoto in a Managed Library, the surplus duplicates are +your folders+. Of course, in time, trash them to get back the wasted disk space. But don't do it today or tomorrow. There's no hurry. When you feel confident that you understand how iPhoto is working and that's it's working for you, theat's the time to reclaim the space.
    I organize my pictures by folders with the month and year.
    If you want to duplicate your Folder Tree in iPhoto:
    Start at the bottom of the hierarchy and drag a folder of images to the Album Heading in iPhoto. The pics will be imported and an Album of the same name created.
    You can then create the Enclosing Folders in the iPhoto Window (File -> New Folder) and drag the Album to it. Folders can contain other Folders (Nested Folders) and Albums.
    However, is your folder system date based? Then this form of organisation is a bit pointless in iPhoto when Smart Albums or the Calendar tool (Click on the wee magnifying glass in the Search Box) mean you can find the photos taken on any day, month or year at a click. With Smart Albums it's easy to find photos from specific range - say, June 3 to August 25, 2009 etc.
    If your folder system is theme based - Xmas pics, Birthday pics etc, then you'll find Keywords are much more flexible, and can be used in conjunction with other criteria for making Smart Albums and searches.
    6) This is very silly, but how do I uninstall picasa (I know how to uninstall on a windows but want to make sure I do things correctly on my mac!)
    Drag the app to the trash and empty it.
    Regards
    TD
    v

  • Creating a new window from and action event

    Hey I have a problem i would like most of my menu items to create a new window containing a set text and i was thinking of creating a new container with a JTextArea but for some reason its not working. if someone could help me that be great... so my question is how do create another window (TextArea) with my tokenized array info in it open up when Print File or Print Total is the event??
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    import java.util.StringTokenizer;
    import javax.swing.plaf.*;
    class PhoneProject extends JFrame implements ActionListener
         private static final int WIDTH = 260;
         private static final int HEIGHT = 160;
         private static final int X_ORIGIN = 402;
         private static final int Y_ORIGIN = 299;
         ArrayList internalCalls = new ArrayList();
         ArrayList externalCalls = new ArrayList();
         PhoneCall internal;
         PhoneCall external;
         JMenu query = new JMenu("Query");
         JMenu proccess = new JMenu("Proccess");
         String inRecord;
         int numExtension;
         int numCallType;
         int numSeconds;
         int totalIntTime;
         int totalExtTime;
    public static void main(String args[])
              PhoneProject frame = new PhoneProject();
              frame.setVisible(true);
    public  void LoadArray(File myFile) throws IOException
              FileReader fr = new FileReader(myFile);
              BufferedReader br = new BufferedReader(fr);
              while ((inRecord = br.readLine()) != null)
                   StringTokenizer tokenizer = new StringTokenizer(inRecord);
                   String extension = tokenizer.nextToken();
                   String callType = tokenizer.nextToken();
                   String seconds = tokenizer.nextToken();
                   numExtension = Integer.parseInt(extension);
                   numCallType = Integer.parseInt(callType);
                   numSeconds = Integer.parseInt(seconds);
                   if (numCallType == 0)
                        internal= new PhoneCall(numExtension, numCallType, numSeconds);
                        totalIntTime = (totalIntTime + numSeconds);
                        //System.out.println(totalIntTime + "int");
                        internalCalls.add(internal);
                   if (numCallType == 1)
                        external = new PhoneCall(numExtension, numCallType, numSeconds);
                        totalExtTime = (totalExtTime + numSeconds);
                        //System.out.println(totalExtTime + "EXT");
                        externalCalls.add(external);
                   System.out.println(internal.getSeconds());     
         public PhoneProject()
              Container contentPane;
              setBounds(X_ORIGIN, Y_ORIGIN, WIDTH, HEIGHT);
              setTitle("Phone Analyzer");
              setResizable(true);
              contentPane = getContentPane();
            contentPane.setLayout(new BorderLayout());
              JMenu file = new JMenu("File");
              JMenuItem  item;
              item = new JMenuItem("Open");
              item.addActionListener(this);
              file.add(item);
              item = new JMenuItem("Exit");
              item.addActionListener(this);
              file.add(item);
              proccess.setEnabled(false);
              item = new JMenuItem("Print File");
              item.addActionListener(this);
              proccess.add(item);
              item = new JMenuItem("Print Totals");
              item.addActionListener(this);
              proccess.add(item);
              item = new JMenu("Low and High");
              item.addActionListener(this);
              proccess.add(item);
              JMenuItem subItem = new JMenuItem("Compare");
              subItem.addActionListener(this);
              item.add(subItem);
              query.setEnabled(false);
              item = new JMenu("Average Total Utilization");
              item.addActionListener(this);
              query.add(item);
              JMenuItem itemInt = new JMenuItem("Internal");
              itemInt.addActionListener(this);
              item.add(itemInt);
              JMenuItem itemExt = new JMenuItem("External");
              itemExt.addActionListener(this);
              item.add(itemExt);
              item = new JMenuItem("Highest Internal Utilization");
              item.addActionListener(this);
              query.add(item);
              item = new JMenuItem("Highest Total Utilization");
              item.addActionListener(this);
              query.add(item);
              JMenuBar menuBar = new JMenuBar();
            setJMenuBar(menuBar);
            menuBar.add(file);
            menuBar.add(proccess);
            menuBar.add(query);
              contentPane.add(new JTextArea("Phone Report"));
      public void actionPerformed(ActionEvent event)
           String menuName;
           menuName = event.getActionCommand();
           if (menuName == "Open")
                JFileChooser chooser = new JFileChooser();
                int returnVal = chooser.showOpenDialog(this);
                if (returnVal == JFileChooser.APPROVE_OPTION)
                     try
                        File myFile = chooser.getSelectedFile();
                        this.LoadArray(myFile);
                        proccess.setEnabled(true);
                        query.setEnabled(true);
                     catch (Exception e)
         if (menuName == "Print File")
    JTextArea display = new JTextArea();
              display.setText("Hello");testing to see if it works
              display.setVisible(true);
         if (menuName == "Print Total")
                                               JTextArea display = new JTextArea();
              display.setText("Hello");//testing
              display.setVisible(true);
           if (menuName == "Exit")
                System.exit(0);
    }Phone.txt
    2000 0 300
    2000 0 538
    2000 1 305
    2000 1 729
    2005 0 205
    2005 0 305
    2005 1 592
    2005 1 594
    2010 0 364
    2010 0 464
    2010 1 904
    2010 1 100
    2020 0 234
    2020 0 839
    2020 1 999
    2020 1 210
    Assignment: Array Based GUI Assignment
    Telephone call data has been collected from a company's telephone switch. You have been asked to analyze it and produce various statistics.
    Input File
    The input file is a sequential file. It is in no specific order. The file contains an extension number, type of call, and the length of call in seconds. A record is produced each time a call is made from that extension. You should create your own test file.
    Field     Type     Description
    Extension     Integer     Extension number. This is a 4 digit number. Valid Extensions are 2000 to 2020.
    Type     Integer     Value of 1 means internal, any other value is an external call.
    Time     Long     Length of call in seconds
    Example:
    �     2000,1,60 : ----->>>> Extension 2000 had an internal call that lasted 60 seconds
    �     2000,1,356: ----->>>> Extension 2000 had an internal call that lasted 356 seconds
    �     2019,2,65: ------>>>> Extension 2019 had an external call that lasted 65 seconds
    �     2001,1,355: ----->>>> Extension 2001 had an internal call that lasted 355 seconds
    Process
    1.     Use 2 arrays to accumulate the time of calls for each extension, both internal and external.
    2.     The reports and queries are to be produced from the arrays.
    Hints:
    �     Create 2 arrays: one for internal calls and one for external calls.
    �     Load the arrays in Form Load: do not do any calculations here.
    �     The report and queries can totally be produced from the arrays.
    Output: Report
    Telephone Useage Report
    Extension Internal External
    2000 4500 3500
    2001 19350 22981
    2002 2333 900
    2003 3144 122
    Totals 99999 99999
    Output: Queries
    On the form add add query capability.
    1.     Average Total Utilization: Internal Calls: 9999 (total length of all internal calls / number extensions)
    2.     Average Total Utilization: External Calls: 9999
    3.     Extension with the highest internal call utilization: Ext xxxx; 9999 seconds.
    4.     Extension with the highest total utilization.
    Form Design
    The design of the form is up to you. However, use the following guidelines:
    �     use menus (preferred) or command buttons
    �     use a common dialog box to ask for the file name
    �     use a list box or text box to display the output
    the caption on the form should include your name

    hi
    u can try like following code
    if (menuName == "Print File")
              new mytextframe();
    class mytextframe extends JFrame{
         JTextArea display = new JTextArea();
         public mytextframe()
              setSize(300,300);
              setVisible(true);
              add(display);
              display.setText( "ello");
    }

  • New to BC and in desperate need of help setting up my online store!

    So, I'm nearing the tear-your-hair-out stage of attempting to set up an online store.
    I'm brand new to BC, and the only reason we're trying it out is because Adobe claims the integration for e-commerce is so easy.  Ahem.  I created a Muse website for a client ( http://themenschonabench.businesscatalyst.com/index.html ).  For the time being, I just want to offer ONE item to be purchased through the 'cart' page.  Can anyone give me easy to follow instructions on how to go about this?  I've watched a million tutorials and haven't found one that SIMPLY explains how to link one product to a template I've already established in Muse. 
    Any and all help is greatly appreciated!

    Yeah, Muse.
    Muse is a basic site creator that steps you into the web world. For that it is really good and quite nice useability. But that is as far as it goes for now, It does not support more complex website features such as the eCommerce directly.
    You need to have a beter understanding of html, css and javascript to utliise all of BC eCommerce properly, but without that knowledge if you just develop it in the BC Admin you can get something produced.

  • I am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier

    i am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier photo please help me to recover my photos

    Well I'll guess you're using iPhoto 11:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • I got a new macbook pro and am having a great deal of trouble with it from the start!  But other than that, which I will get to, I have had macs since the one following Lisa and I am a diehard apple fan, yet now with the macbook pro and Lion and its

    I could not download the upgrade to the mountain lion. my updates were taking an enormous amount of time for other programs. When I finally got the indication it was waiting to be downloaded I had to shut down. It was after 2 am and I was practically unconscious already with all the trauma of trying to find the right place for the redeem of the code to open the password. It was all confusing and poorly communicated by Apple. The terrible deterioration of Apple's written communications by non-American techies who can't write for easy understanding, even by this old time tech afficianado is heart-breaking and frustrating is putting the effects mildly.  I have not yet gone back to the mac book pro to finish the job. I am too frustrated and unhappy with the new system.  Also, I found out the hard way that my time capsule saved files on the macbook Snow Leopard, which still works fine after 6 years of use, is locked in that external drive and I cannot transfer the items except one by one or by folders on that computer to a DVD or to a flash drive, to mport to this new computer. Because the systems are not the same, I can't access the files automatically. I fear I will have further problems with the mountain lion vs. lion in seeing those files. What can I do? What should I do?  I am afraid to designate an external hard drive I purchased with the new laptop for the time capsule because then it won't work with any other computer.  I read of terrible incompatibility issues and crashes and things not working right once Mountain Lion was installed and now I am terrified they will happen to me. I just wanted the computer to be as easy to use as all the other macs I have and have had and now it is more like a horribly complicated and difficult Microsoft IBM compatible PC. I hate this. Perhaps Apple wanted to appeal to new Apple users and tried to make them comfortable while disregarding the comfort of loyal Apple users?  It's a sell-out. Meanwhile, I have to get senior tech people because the kids who try to answer my questions much of the time don't interpret what i am telling them and it takes a pro.  Perhaps the kids can answer what I should do in preferenced to scroll the screen, since the scroll indicators disappear and I can't see them and have to resort to using the arrows on the keyboard, which is not the way I like to work.    Please advise me about all of these things!

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • Open discoverer report in new browser window and without connections page

    Hi All,
    We are using Oracle 11g Discoverer 11.1.1.4.  Requirement is to open the discoverer report in a new browser window and without connections page.
    When we are running discoverer reports with this parameters we unwantedly get the connections page of the discoverer plus which we don't want.
    Went through the documentation given in this page and followed it still the issue persists, and i see couple of threads with my issue and no updates.
    This excerpt is from the documentation available in the link
    " _plus_popup=true and framedisplaystyle=embedded launches Discoverer Plus in a new pop-up browser window that contains the Plus applet embedded in it "
    http://www.art2dec.com/documentation/docs/oas10g1012/linux/bi.1012/b13918/urlstart.htm
    and Here is what we use to invoke our reports.
    http://ipaddress:port/discoverer/plus?cn=cf_123&_plus_popup=TRUE&framedisplaystyle=EMBEDDED&wb=disc_wb_1
    Request the forum users from PRO discoverer group to help me out of this issue and expect a good discussion on this.
    Thanks in advance

    Closing the thread
    We were able to achieve by changing the browser settings in the IE 8 Browser. Disabled Tabbed browsing.

  • So, I have just about had it. For nine days now,  I have valiantly tried to move my library to an external drive. At first, I attempted to move it to my 2TB Time capsule, iTunes didn't like its new home though and moved home without telling me.

    So, I have just about had it. For nine days now,  I have valiantly tried to move my library to an external drive. At first, I attempted to move it to my 2TB Time capsule. iTunes didn't like its new home though and moved home without telling me. So then there were two libraries. I meshed them back together reluctantly and iTunes in a silent revolt, absolutely refused to use its own 'Keep Library Organized' criteria and may as well have thrown my music against the wall. Seriously, my 5 year old nephew has his computer files better managed. Then I bought a 3TB Time Capsule and you may ask yourself why??? Well, iTunes doubled in size- although when I ran apps that are designed to find duplicate iTunes files, it deleted the music I actually bought from iTunes. So then I watched as iTunes got it back. How you ask; I run a MacBook Air, iMac and Mac mini in my house - as soon as one powered up it hit the net like a sailor on leave and re-downloaded it all without abandon. I tried to keep the libraries separate, no success there. I tried to keep them unified; iTunes response was to ask me if I wanted to join iTunes Match every time I logged on to my computer and on any computer - my iTunes match song number has been as high as 24,367 and as low as 11,112. And I can't simply refuse iTunes. No one refuses iTunes. Refusal to allow iTunes Match to run through all 24000 songs again was to revoke my rights to the songs that were once part of my library. If I took a long time to decide or was visibly impatient while iTunes did its little 3 hour scan it would arbitrarily decide that music I bought from iTunes was ineligible for iTunes Match. How could that possibly be??? I am missing music, or at least iTunes tells me so by showing me that lovely exclamation point. I have tried backing up my computer to do a full system restore and start all over. Time Capsule claims I have 979 GB of data and takes its sweet time to even back up one gig (about 18 minutes) even though I can transfer files to my Time Capsule at about 1 GB every 40 seconds. I guess though performing back-ups are somewhat like government jobs; it will get done, when it gets done. The back up requirement of 979 GB is surprising though, my Mac claims that I currently occupy just about 25% of my 2TB drive. The discrepancy, who knows, but I think the solution lies somewhere in iTunes. But maybe iPhoto. But that is for another time.

    After admittedly only a quick read the one thing you don't say is how you are trying to make this move.  Most people with moving library issues do it the wrong way.  Plenty of web sites tell you how to do it the wrong way.
    If the iTunes application is started before the drive with the library is fully mounted and awake iTunes will revert back to the internal drive.

  • I've just updated my iPhone to the new iPhone OS and now it won't work and iTunes won't recognise that it's there.  I've uninstalled iTunes and reinstalled twice and it's not working.  Please help.

    I've just updated my iPhone to the new iPhone OS and now it won't work and iTunes won't recognise that it's there.  I've uninstalled iTunes and reinstalled twice and it's not working.  Please help.

    I have not had wifi since November when I upgraded to the newest IOS version.  I called the Apple help line and they told me some things to do and I tried them all and they worked for a few hours and then wifi shut off again.  I kept doing what they told me and it worked for a couple more days and then I could never turn it on again.  My blue tooth doesn't work either.  I had to actually increase my data usage with AT&T becuase of this.  When I did that in December I went to the Apple store and was told that it is a hardware issue and since my phone is out of warranty I would have to pay for a new phone because they could not fix the issue.  My upgrade isn't up until June 2014 so not only do I have to wait for the upgrade and I am not paying for a new phone but I have to pay $10 plus extra a month on my cell phone bill because I was going over on my Data!!!  I have been beyond upset about this and Apple is not doing anything about this nor did they offer up some way to resolve the issue because obviously it is not just some rare incident if several people are having this issue.  Who knows how many people out there have had this issue and have not said anything about it.  Now there is a newer update that I can't do because it requires wifi in order to download.
    June can not get here fast enough and I may not go back to Iphone after dealing with this for so long with no help from Apple.

  • I have an imac 20 in. The old hard drive crapped out on me. i put a new harddrive in and am now trying to install linux. But the imac doesnt recognise any keyboards

    I have an imac 20 in. The old hard drive crapped out on me. i put a new harddrive in and am now trying to install linux. But the imac doesnt recognise any keyboards

    Without a bootable backup/clone or a Time Machine backup of your previous Snow Leopard installation or a saved copy of Lion's install app, you'll have to upgrade your Leopard volume to Snow Leopard (10.6.6+) so you can waste another hour or more DLing the Lion thing again.

  • I got a flashing folder with a question mark. I got a new hard drive and upgraded to 4 gigs and can't open anything or reload the operating system? Help?

    I got a flashing folder with a question mark. I got a new hard drive and upgraded to 4 gigs and can't open anything or reload the operating system? Help? FYI: I have been using boot camp with windows 7 and started getting a kernal_data_Page_error and it would reboot windows, i was trying to do a chkdsk on the next reboot, but thats when i started getting this issue. I have put in a new hard drive and went from 2 gigs to 4. I can not get the computer to do anything, even the monitor does not show anything now????

    Prep your new drive:
    Drive Preparation
    1. Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID (for Intel Macs) or APM (for PPC Macs,) then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    After formatting has completed quit DU and return to the installer. Install OS X.

  • Playlists Missing After Install New Hard Drive and Upgrade to Win 7

    My computer needed a new hard drive and I upgraded from Win Vista Home Premium to Windows 7 Home Premium.
    I am trying to get my Playlists back for my iTunes in my "Administrator" user account, after reinstalling iTunes and putting my music libraries back onto my computer.
    (I had installed 32-bit Win7 OS myself, computer worked OK for about 1 day, then would not boot up; I took computer to shop, they said I needed new Hard Drive, and I gave them my new Win7 OS computer disks)
    I am confused over whether I have 32-bit OS or 64-bit OS. They recommended installing 32-bit OS, I agreed, and believed that I had 32-bit OS installed; however, Computer / System Properties state "System type: 64-bit Operating System"
    Prior to my installing Win7, I backed up the following onto my Western Digital "My Passport Essential Portable Hard Drive:"
    ("My Administrative Account"): Users / Owner / My Music
    and
    ("My User Account"): Users / Yank / My Music
    My "Administrative" and "User" user accounts contain different songs in iTunes.
    If helpful, I could describe what is in each of these 2 backed-up music folders.
    To get started, I copied both my "Owner" and "Yank" user folders in the C: User folder; however now I have "Owner," "Yank," and "Yank.Owner-Toshiba" folders in the C: User folder. I think I did this by creating a new Yank user account by creating a new account, not by my copying a folder into C: User folder. The Owner folder has a picture of a lock on the folder icon.
    Because I had trouble merging My Music folders in the Owner folder, and I was confused, I copied everything that was in the Owner folder into a new folder in the Owner folder, "NEW OWNER FOLDER." I also copied my Owner Music folder into several places in my Users / Owner folder.
    I also ended up changing the "iTunes Media folder location" several times, using iTunes "Edit / Preferences / Advanced tab / change "iTunes Media folder location". When I chose "Reset," it shows "C:\Users\Owner\NEW OWNER FOLDER\Music\iTunes\iTunes Media"
    I've also played around with "Edit / Preferences / Advanced tab / 'Keep iTunes Media folder organized' "
    When I open my iTunes, I have no playlists.
    However, when I went to my "Yank" user account and opened iTunes for the first time, the playlists associated with that account were visible.
    How do I get my playlists back on my Administrative Account, which is my main song collection and had many, many playlists?
    Thank you.

    YAY!
    I didn't try shift-start of iTunes, but I DID GET MY PLAYLISTS BACK BY FOLLOWING YOUR OTHER ADVICE:
    I went to my external hard drive, went to my backup at Users / Owner / My Music / iTunes / and searched for library.itl
    Four files with that name were found, with different dates.
    I chose the most recent, dated just a few days before I made my backup to the external hard drive.
    I copied it to my computer's hard drive into the following location:
    C:\Users\Owner\NEW OWNER FOLDER\Music\iTunes
    which overwrote the file which was located there.
    When I opened iTunes, ALL MY WONDERFUL PLAYLISTS WERE THERE!
    THANK YOU SO MUCH FOR SOLVING THIS FOR ME!
    CAN YOU IMAGINE HOW DISAPPOINTED I FELT WHEN I BELIEVED THAT I HAD LOST ALL OF THE PLAYLISTS WHICH I HAD CREATED OVER THE YEARS? Many of my playlists were composed of whole albums whose songs I had added to iTunes.
    THANK YOU AGAIN SO MUCH!

Maybe you are looking for