EASY array question

alright, basically i'm trying to store both strings and ints in the same array, possible or impossible? thanks

The major difference is a Vector can be extensible.
(In fact it is an array with a fixed size, but when we want to add something and the size is too small,
a new larger array is created and the first array is copied in and the new data is added).
Vector doesn't use really more memory because it is an array. The only moment the Vector use more memory is when it grows. The old array will be cleared by the gc when needed.
The choice is made only if you want a fixed size or not or if the size is known when you
want to create the array.
About access time, the performances are good with sequential or random access in both cases.
Denis

Similar Messages

  • Havent a clue! Please help! Easy ABAP Question!

    Helly Gurus
    I am loading from a dso to a cube and doing a lookup on a second dso.
    eg
    'Name' is in the DSO1
    I lookup 'Address' from DSO2
    Then load to the cube.
    The problem is there may be more than one address so although I have coded the lookup to
    find all addresses, I do know how to get these into my results.
    Only the first address it finds is there.
    loop at DATA_PACKAGE.
        select * from DSO1 where
        NAME = DATA_PACKAGE-NAME.
        if sy-subrc = 0.
          move-corresponding DSO2 to itab1. collect itab1.
        endif.
        endselect.
      endloop.
    What do I need to do to get all of the results?
    I am in 3.5 so do not have the use of an End Routine.
    Thanks
    Tom Tom

    you need to do several treatments in fact you need to add records on the data_package (by the way it is not an easy ABAP question as you mentioned !)
    So
    Treatment 1: select all the records from ods2 table of adresses outside the loop
        select names adresses
        from ods2
        into table g_itab_ods2
          for all entries in data_package
          where name eq data_package-name.
    Treatment 2: delete double records of the internal table.
        delete adjacent duplicates from g_itab_ods2 comparing names adresses.
    Treatment 3: loop over the data_package. Within this loop read the internal ods2 table and loop over it to assign the corresponding adresses. Then append the results to the temporary data_package_tmp and move all the records to the initial data_package.
    loop at data_package assigning <data_fields>.
       read table g_itab_ods2 into l_g_itab_ods2
          with key name = <data_fields>-name.
          if sy-subrc eq 0.
            loop at g_itab_ods2 assigning <adresses>
            where name                = <data_fields>-name.
              <data_fields>-adresses= <adresses>-adresses.
              append <data_fields> to lt_data_package_tmp.
            endloop.
          endif.
        endloop.
        data_package[] = lt_data_package_tmp[].
    free lt_data_package_tmp.
    this should do what you want to do. hope this could help you out.

  • Trying to send multiple types in a byte array -- questions?

    Hi,
    I have a question which I would really appreciate any help on.
    I am trying to send a byte array, that contains multiple types using a UDP app. and then receive it on the other end.
    So far I have been able to do this using the following code. Please note that I create a new String, Float or Double object to be able to correctly send and receive. Here is the code:
    //this is on the client side...
    String mymessage ="Here is your stuff from your client" ;
    int nbr = 22; Double nbr2 = new Double(1232.11223);
    Float nbr3 = new Float(8098098.809808);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    ObjectOutputStream oos = new ObjectOutputStream(baos);
    oos.writeObject(mymessage);
    oos.writeInt(nbr);
    oos.writeObject(nbr2);
    oos.writeObject(nbr3);
    oos.close();
    byte[] buffer = baos.toByteArray();
    socket.send(packet);
    //this is on the server side...
    byte [] buffer = new byte [5000];
    String mymessage = null; int nbr = 0; Double nbr2 = null;
    Float nbr3 = null;
    mymessage = (String)ois.readObject();
    nbr = ois.readInt();
    nbr2 = (Double) ois.readObject();
    nbr3 = (Float) ois.readObject();
    My main question here is that I have to create a new Float and Double object to be able to send and receive this byte array correctly. However, I would like to be able to have to only create 1object, stuff it with the String, int, Float and Double, send it and then correctly receive it on the other end.
    So I tried creating another class, and then creating an obj of this class and stuffing it with the 4 types:
    public class O_struct{
    //the indiv. objects to be sent...
    public String mymessage; public int nbr; public Double nbr2;
    public Float nbr3;
    //construct...
    public O_struct(String mymessage_c, int nbr_c, double nbr2_c, float nbr3_c){
    my_message = my_message_c;
    nbr = nbr_c;
    nbr2 = new Double(nbr2_c);
    nbr3 = new Float(nbr3_c);
    Then in main, using this new class:
    in main():
    O_struct some_obj_client = new O_struct("Here is your stuff from your client", 22, 1232.1234, 890980980.798);
    oos.writeObject(some_obj_client);
    oos.close();
    send code....according to UDP
    However on the receiving side, I am not sure how to be able to correctly retrieve the 4 types. Before I was explicitely creating those objects for sending, then I was casting them again on the receiving side to retrieve then and it does work.
    But if I create a O_struct object and cast it as I did before with the indiv objects on the receiving end, I can't get the correct retrievals.
    My code, on the server side:
    O_struct some_obj_server = new O_struct(null, null, null. null);
    some_obj_server = (O_struct)ois.readObject();
    My main goal is to be able to send 4 types in a byte array, but the way I have written this code, I have to create a Float and Double obj to be able to send and receive correctly. I would rather not have to directly create these objects, but instead be able to stuff all 4 types into a byte array and then send it and correctly be able to retrieve all the info on the receiver's side.
    I might be making this more complicated than needed, but this was the only way I could figure out how to do this and any help will be greatly appreciated.
    If there an easier way to do I certainly will appreciate that advise as well.
    Thanks.

    public class O_struct implements Serializable {
    // writing
    ObjectOutputStream oos = ...;
    O_struct struct = ...;
    oos.writeObject(struct);
    // reading
    ObjectInputStream ois = ...;
    O_struct struct = (O_struct)ois.readObject();
    I will be sending 1000s of these byte arrays, and I'm sure having to create a new Double or Float on both ends will hinder this.
    I am worried that having to create new objs every time it is sending a byte array will affect my application.
    That's the wrong way to approach this. You're talking about adding complexity to your code and fuglifying it because you think it might improve performance. But you don't know if it will, or by how much, or even if it needs to be improved.
    Personally, I'd guess that the I/O will have a much bigger affect on performance than object creation (which, contrary to popular belief, is generally quite fast now: http://www-128.ibm.com/developerworks/java/library/j-jtp01274.html)
    If you think object creation is going to be a problem, then before you go and cock up your real code to work around it, create some tests that measure how fast it is one way vs. the other. Then only use the cock-up if the normal, easier to write and maintain way is too slow AND the cock-up is significantly faster.

  • Database array questions

    Disclaimer: I am new to DB's.
    I'm looking at creating a MySQL database to hold tests done on DUTs (each with a specific serial). In theory, each DUT undergoes 3 tests. Each test produces a 401x9 2D array of DBLs. I am not concerned with the write speed to the DB, but I do want to optimize the read of the DB (potentially may need to retrieve 1000+ of these 2D arrays as fast as possible). I have the DB Toolkit; using LV 8.5. Questions:
    1. I have seen two different ways to save a 2D array in a DB mentioned: first, writing one row at a time with the DB Insert vi, resulting in a 2D array in a table (which is slow writing) or second, changing the 2D array to a variant and using the DB Insert vi, resulting in a single cell in a table. I know I can use other methods (parameterized vi, sql commands, user defined functions on the DB server, please do comment if you have found drastic performance increase with these methods), but of the two ways of storing a 2D array, can I read a 2D array from a table faster than reading a 2D array from a single cell? Whenever I need this data, I will read it all (i.e. I will never have to search for certain data within these individual 2D arrays)
    2. I may have installed the 8.2.1 DB toolkit, because the Database Variant to Data vi/function does not drop onto the Block Diagram when I drag it from the palette, and the Help has ???. I assume this is because it just points to the normal Variant to Data, which in 8.5 is in a subpalette as compared to 8.2.1. Any quick way to fix this?
    3. Any other general suggestions for a DB newbie? I've been trying to derive best practices from KB aritcles, this forum, and the web, but there is so much information and so many varying opinions I find it hard to narrow down best practices.
    Michael

    Hi Miguel,
    It looks like you are embarking on a very interesting project. Although you probably have seen many of the following documents, I've linked a few to get you started.
    Discussion forum using LabVIEW to read from tables
    Developer Zone article about developing a test system
    Knowledgebase article about imitations of speed with database toolset
    As far as your first question, I would suggest trying out both methods with simple code and testing with a small amount of values to determine  which one will be the fastest.
    Good luck with your project!
    Amanda Howard
    Americas Services and Support Recruiting Manager
    National Instruments

  • Array questions

    Hi, everyone.
    I'm writing a lab program which counts the number of occurances of English letters in a line of English text.
    The program has the following requirements
    Assume that we input only lowercase English text
    The program should be able to count the number of occurances of English letters in a text and print out both the number of occurances and the letters. Don't print out letters that don't exist in the text.
    I write my code as following:
    import java.util.*;
    public class Translator
    public static void main(String[]args)
         Scanner sc = new Scanner(System.in);
         System.out.println("Please enter text:");
         String text = sc.nextLine();
         char[] input = text.toCharArray();
        public static void countLetters(char [] input)
            System.out.println("Letter           Number of occurances");
            int[] alphabet = new int[26];
            for (int i=0; i<input.length; i++)
                if (input=='a')
    alphabet[0] += 1;
    else if(input[i]=='b')
    alphabet[1] += 1;
    else if (input[i]=='c')
    alphabet[2] += 1;
    else if (input[i]=='d')
    alphabet[3] += 1;
    else if (input[i]=='e')
    alphabet[4] += 1;
    else if (input[i]=='f')
    alphabet[5] += 1;
    else if (input[i]=='g')
    alphabet[6] += 1;
    else if (input[i]=='h')
    alphabet[7] += 1;
    else if (input[i]=='i')
    alphabet[8] += 1;
    else if (input[i]=='j')
    alphabet[9] += 1;
    else if (input[i]=='k')
    alphabet[10] += 1;
    else if (input[i]=='l')
    alphabet[11] += 1;
    else if (input[i]=='m')
    alphabet[12] += 1;
    else if (input[i]=='n')
    alphabet[13] += 1;
    else if (input[i]=='o')
    alphabet[14] += 1;
    else if (input[i]=='p')
    alphabet[15] += 1;
    else if (input[i]=='q')
    alphabet[16] += 1;
    else if (input[i]=='r')
    alphabet[17] += 1;
    else if (input[i]=='s')
    alphabet[18] += 1;
    else if (input[i]=='t')
    alphabet[19] += 1;
    else if (input[i]=='u')
    alphabet[20] += 1;
    else if (input[i]=='v')
    alphabet[21] += 1;
    else if (input[i]=='w')
    alphabet[22] += 1;
    else if (input[i]=='x')
    alphabet[23] += 1;
    else if (input[i]=='y')
    alphabet[24] += 1;
    else alphabet[25] +=1;
    System.out.println("a");
    for(int i=0; i<input.length; i++)
    if (alphabet[i] > 0)
    System.out.println(input[i] +" "+alphabet[i]);
    Though having gotten no syntext error complain from the compiler, no matter what I input, the program returns nothing. At first I assumed that it's the first for loop's problem, so that I typed in some System.out.println() methods at the end of some elseif statements. But I still got nothing after this trial. So that I guess it's the char[] input = text.toCharArray();'s problem.
    Have the input[i] elements really stored any character (I tried to convert the input string into char array) after I typed char[] input = text.toCharArray();'s problem. ?
    My another question is: since the input[i] stores character, when I am trying to print out the letters that exist in the text through the last System.out.println() method in my code, I can use input[i] to represent the letter which I want to print. Is it right?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I figure out now that the problem is caused by the last for loop. I modify it as following:
    for(i=0; i<26; i++)
                if (alphabet[i] > 0)
                System.out.println('a'+i +"          "+alphabet);
    }After the modification, now I can get the right answer. The only problem I have now is trying to convert the interger number produced by 'a'+i back into character. I tried to replace 'a'+i with toChar('a'+i), but it doesn't work. Can you give me some explanation? Thank you very much!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Photo Array Question

    I have a bit of a silly question about the photo array Apple uses in many of their publications, including the idea behind "CoverFlow". Check this link to see what I mean: http://arstechnica.com/reviews/os/mac-os-x-10-5.ars/2. (Bottom photo)
    Is there a way to achieve this? What software accomplishes this? I am a webmaster using iWeb.
    I have something similar on the page I have created, but the difference is my photos are straight as they descend, whereas Apple's are straight, yet not square, they seem to be turned, like in this top image of Ubuntu: http://www.taimila.com/?q=node/3. The photos are not rotated, but turned.
    Any software ideas?
    Any ideas at all?

    Resizing is a different issue altogether from format.
    It's safe to scale the image in ID regardless of the format. If you look in the info panel with the image selected you'll see two resolution numbers listed, actual and effective. Actual is just the resolution at the dimensions the image was saved and is essentially irrelevant. Effective resolution is what you have at the dimensions you are currently using, and that's the number that counts. If that number is in the range that is acceptable for the type of output you are using, there is no need to resize the image in Photoshop at all.
    If you MUST resize the image, then yes, convert to something besides jpeg if that's what it is to start. And keep in mind that up-sampling won't improve image quality in general, and downsampling more than 20% or so can cause you to lose fine details (but so will scaling down).
    Peter

  • Can't edit multiple tracks - plus 2 easy audio questions

    I have a sequence with 1 video track and 6 stereo audio tracks. I set an in and an out point. The area on the clips in the timeline between the two edit points highlights, I hit delete. Normally, the tracks between the points should disappear as the two segments come together and form one great edit.
    But all the tracks do not highlight and edit. The video track and stereo audio tracks 3+4 and 5+6 highlight and LIFT off. But audio tracks 1+2 do not highlight or edit. And the whole sequence doesn't close together where the edit should be.
    Only way I have been able to overcome this is to use the razor blade tool, cut each track individually. Highlight them all, and then hit delete.
    This didn't use to be the way. FCP used to edit through one track, 3 tracks or all tracks, no problem.
    Two audio questions. How do you stop the waveforms from drawing onto the clips in the timeline, in order to speed up FCP?
    How do you get the audio in captured clips to be a Stereo Pair, from the outset?
    Thanks to all you who help!

    Is it usual for FCP to bog down on a 4 minute piece when audio wave forms are turned on??
    <
    No. Should run fine. You get up into 6-12 audio tracks, FCP gets all moody and pouty.
    But it depends on your system's capabilities and how well you have chosen your sequence settings.
    Audio waveforms n FCP are a cruel joke compared to many other NLEs. Often easier to leave them off in the timeline, use the waveform in the Viewer and set markers for hooks in the audio tracks.
    bogiesan

  • FLV Array question - final flv file looping

    So the first part of my question was kindly and quickly
    answered by Rothrock. But I've got a new question that has arisen.
    When I set these up as an array it's ignoring the settings in the
    parameter field for autorewind which is set to false and it's
    looping the last movie file in the array. Is there anyway to avoid
    this by adding a snippet of new code to this code below:
    import mx.controls.MediaDisplay;
    flvURL = new Array();
    flvURL[1] = "preroll_live.flv";
    flvURL[2] = "atlas.flv";
    flvURL[3] = "jones_outro.flv";
    counter = 1;
    my_FLVplybk.contentPath = flvURL[1];
    var listenerObject:Object = new Object();
    listenerObject.complete = function(eventObject:Object):Void {
    counter++;
    if (counter == flvURL) {
    counter = 1;
    my_FLVplybk.contentPath = flvURL[counter];
    my_FLVplybk.addEventListener("complete", listenerObject);
    Preferably I'd like to either:
    Have the movie reset to an array file of my choice but not
    auto play or just Stop the movie on the final frame.
    Any help here will be greatly appreciated.
    Many thanks!
    -Kjup

    Anyone have any ideas on this...let me know if you need more
    details.
    Thanks,
    Kjup

  • Sort an array question

    Hello I have a sort question.
    I have a array like this
    "105016""Testnaam 16""16""16"" 16 16 1""105017""Testnaam 17""17""17"" 17 17 2""105018""Testnaam 18""18""18"" 18 18 3""105019""Testnaam 19""19""19"" 19 19 4""105020""Testnaam 20""20""20"" 20 20 5"This 105016 is the record number with data after it "Testnaam 16""16""16"" 16 16 1"
    Than there is new data "Testnaam 17""17""17"" 17 17 2" with record number 105017
    This is the way it should be because it is good sorted like you can see
    first. 105016
    than next record 105017
    than next record 105018
    than next record 105019
    than next record 105020
    It is in the right order but it can happen that record 105017 is before 105016 because something happend.
    All data is stored in an array like I said.
    Is it possible to go with a loop through the array and sort it the way I want it but with the data of the record after it???

    Hello I made this sorter.
    But does someone have some tips if there is a better way to do it.
    public class sorttest
    public static void main(String[] args)
        String[] data = {"2","boe","schrik","6","hoioi","b","5","test","hoi","9","doei","iets"};
        int[] inar = new int[data.length/3];
        String[] collected= new String [data.length];
        for (int i=0;i<data.length;i+=3)
          inar[i/3]=Integer.valueOf(data).intValue();
    int max = inar[0];
    for (int i=0;i<inar.length;i++)
    if(inar[i]>max)
    max=inar[i];
    int col=0;
    for (int i=0;i<(max+1);i++)
    for (int j=0;j<inar.length;j++)
    if(inar[j]==i)
    String test =""+inar[j];
    int cnt= Integer.valueOf(test).intValue();
    String iets = ""+cnt;
    for(int k=0;k<data.length;k++)
    if (iets.equals(data[k]))
         collected[col] = data[k]+" "+data[k+1]+" "+data[k+2];
         System.out.println("DATA OUT "+collected[col]+" COL "+col);
         col++;

  • Arrays Question

    Hello all, i have a couple of questions about multi-dimensional arrays.
    The length of this 2-dimensional array is 3.
    int table[] [] = {
    {1, 2, 3},
    {4, 5},
    {6, 7, 8, 9},
    But what is the length of both own dimensions? How many rows({}) belong to each dimension?
    So, what are ? and ? int table [] [] = new int [?] [?] or is it not possible to have a value for ? and ? if you initialized the 2d array?
    "Length= number of arrays stored in the multidimension." is this definition good?
    int t, i;
    int table [] [] = new int [3] [4];
    for(t=0; t<3; ++t){
    for(i=0; i<4; ++i){
    table[t] = (t*4) + i + 1;
    system.out.print(table [t] [i] + � �; } system.out.println();
    The size of this not initialized 2-dimensional array is 3,4(like in a real table, 3 vertical indexes, and 4 horizontal indexes). But, does this 2-dimensional array have a length(number of arrays), if yes, what is the length of this?

    import java.util.Arrays;
    import java.util.Random;
    public class ArrayOfArrays {
        private int[][] data;
        public ArrayOfArrays(int rows, int cols) {
            data = new int[rows][cols];
        //numbers in the range lo <= x < hi
        public void fillWithRandomNumbers(int lo, int hi) {
            Random r = new Random();
            for(int[] row: data) {
                for(int i =0; i<row.length; ++i) {
                    row[i] = lo + r.nextInt(hi-lo);
        public void display() {
            for(int[] row: data) {
                System.out.println(Arrays.toString(row));
        public static void main(String[] args) {
            ArrayOfArrays app = new ArrayOfArrays(5,10);
            app.fillWithRandomNumbers(10,20);
            app.display();
    }

  • Easy swing question for Java friends

    Hi could somebody test this short application and tell me why the "DRAW LINE" button doesnt draw a line as I expected?
    thank you very much!
    Circuitos.java:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.awt.geom.*;
    public class Circuitos extends JApplet {
         protected JButton btnRect;
         protected Terreno terreno;
         private boolean inAnApplet = true;
         //Hack to avoid ugly message about system event access check.
         public Circuitos() {
              this(true);
         public Circuitos(boolean inAnApplet) {
            this.inAnApplet = inAnApplet;
              if (inAnApplet) {
                   getRootPane().putClientProperty("defeatSystemEventQueueCheck",Boolean.TRUE);
         public void init() {
              setContentPane(makeContentPane());
         public Container makeContentPane() {
              btnRect = new JButton("DRAW LINE");
          btnRect.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                terreno.pintarTramo();
              terreno = new Terreno();
              JPanel panel = new JPanel();
              panel.setLayout(new BorderLayout());
              panel.add("North",btnRect);
              panel.add("Center",terreno);
              return panel;
         public static void main(String[] args) {
            JFrame frame = new JFrame("Dise�o de Circuitos");
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              Circuitos applet = new Circuitos(false);
              frame.setContentPane(applet.makeContentPane());
              frame.pack();
              frame.setVisible(true);
    }Terreno.java:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.geom.*;
    public class Terreno extends JPanel {
         Graphics2D g2;
         public Terreno() {
              setBackground(Color.red);
              setPreferredSize(new Dimension(500,500));
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
          g2 = (Graphics2D) g;
          g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);    
         public void pintarTramo () {     
              Point2D.Double start   = new Point2D.Double(250,250);
              Point2D.Double end     = new Point2D.Double(250,285);
              g2.draw(new Line2D.Double(start,end));            
    }

    I don't think the date I became a member has anything to do with it. Yes, I signed up a year ago to ask a question or two when I didn't know anything. It wasn't until recently have I started to use this forum again, only to try and help people as well as ask my questions. It took me a year to get to this point to where I can actually answer questions instead of just asking. So don't be silly and judge a person based on their profile.
    Secondly, I agree with you, the search utility is great. I use it all the time and usually I'll find my answers, but if I don't is it such a pain in the butt for you to see the same problem posted again?? I know how much you want people to use the resources available before wasting forum space with duplicate questions, but it's not going to happen. Some people are not as patient and you being a butt about it won't stop it.
    My point in general is that there are nice ways to help people and even rude ways, and your comments at times come across rude to me, even condescending. You have a lot of knowledge, therefore certain things seem trivial to you... but try to understand where some of the new people are coming from. The Swing tutorial is extremely helpful but if you don't understand the concept of programming or java that well... then it can be overwhelming and you don't know where to start. It's a huge tutorial and when people are stuck they just want an answer to their one question. Most figure it's easier to ask someone who already knows instead of reading an entire tutorial to get their answer.
    I've learned by both methods, by taking the time to research it myself and by asking a lot of questions. I have the time. Some don't. Please realize that not everyone is like you and they will continue to ask whether you like it or not. You have a choice, either help them or not.

  • Rc.conf deamons array - question

    i have a question about the deamon array in rc.conf, this is mine:
    DAEMONS=(preload syslog-ng dbus acpid netfs alsa crond hal acpi-support fam stbd wicd gpm cups samba asusoled-clockd bluetooth transmissiond sshd)
    i know there is an order for some things, i just dont know what, so my question, is my order ok? if not what do i need to switch?
    thanks

    adamruss wrote:
    Inxsible wrote:
    adamruss wrote:
    i have a question about the deamon array in rc.conf, this is mine:
    DAEMONS=(preload syslog-ng dbus acpid netfs alsa crond hal acpi-support fam stbd wicd gpm cups samba asusoled-clockd bluetooth transmissiond sshd)
    i know there is an order for some things, i just dont know what, so my question, is my order ok? if not what do i need to switch?
    thanks
    As long as the daemons are independent of each other, it hardly matters what order they are started in. The only thing is that the syslog-ng is used for logging...so you always want to start that before anything else so that in case there are errors in starting any daemon, they will logged and you can see them later.
    I am not sure what 'preload' daemon is. Also you might want to start the unimportant ones in the background by prefixing them with an '@' sign so that your boot up would be quicker.
    what do you mean unimportant?
    You could bacground "alsa gpm cups samba bluetooth".
    Oh, and if you don't use any network filesystems remove netfs. Don't have any cronjobs remove crond.

  • Easy Slide Question for Website

    Easy question for u guys.
    What is the easiest way to create slider header such as these websites ->
    http://www.pclsolutions.com/
    http://www.alivre.com/
    What is the easies way of doing it???
    Dreamweaver has so many options, and I have very limited time so I was wondering if anybody could give me the easy answer here so I can proceed further.
    Thank you in advance guys.

    Log-in to the Adobe Widget Exchange and grab Spry Content Slideshow
    http://labs.adobe.com/technologies/widgetbrowser/
    WOW slider
    http://wowslider.com/
    NIVO slider
    http://nivo.dev7studios.com/
    just to name a few...
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • CAS (array) questions redux

    I have a single Exchange server, where Get-Mailboxdatabase reports that the RPCClientAccessServer is servername.domain.local
    I'm currently having a certificate mismatch due to using a wildcard certificate, this only manifests as an error popup when you first start Outlook. Mail works fine, as do calendars - but I want to get rid of that pop-up.
    I'm already doing a split-brain DNS for EWS and so forth - mail.domain.com resolves to an internal IP internally and an external IP externally through a "real" DNS entry that's Internet-facing, and this way neither users internally or externally
    get certificate errors and everything works - EAS, OWA etc. So it's just this internal issue left.
    The question I have is that  I read something about it being a bad idea to use the same DNS name for CAS if the same address is externally resolvable (which it would be in this case). Does setting RPCClientAccessServer affect external clients too?
    Should I create a second split brain DNS entry instead, like mail-internal.domain.com and point that at servername.domain.local just to use for CAS?
    The second part of this question - can I just do: Set-MailboxDatabase MailboxDatabaseName -RpcClientAccessServer “mail.domain.com” and  walk away, ie skip the CAS array creation entirely if I were to choose that, assuming mail.domain.com resolves internally
    to servername.domain.local?
    Or should I definitely create the array and use that instead even though this is a single-server environment?
    Thanks.

    Indeed!
    http://blogs.technet.com/b/exchange/archive/2012/03/23/demystifying-the-cas-array-object-part-1.aspx is what Will is referring to.
    No, it is not that simple of just changing it and walking away. 
    Is this Outlook 2013 by any chance?
    Cheers,
    Rhoderick
    Microsoft Senior Exchange PFE
    Blog:
    http://blogs.technet.com/rmilne 
    Twitter:   LinkedIn:
      Facebook:
      XING:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Quick Array Question

    Hey,
    I was wondering if you folks could help me.
    I am going to use arrays for this program, but I can�t seem to get the first point right, it just won�t compile.
    Any who...My goal here is to create a program that prompts the user for the number of tests, then the program loops the desired amount of times, each loop the user will be prompted for the student id, name, test score...etc using arrays.
    My question is...first off, how do I get it to start...lol, and secondly, how do I input various amounts of strings (i.e. names) into an array...then output them latter. Here is my code thus far.
    import javax.swing.JOptionPane;
    public class TestScoreFinal {
         public static void main(String[] args){
              // Declarations
              String numTest;
              String testScore;
              double nTest;
              double tScore;
              // Input of Number of Tests
              double[] totTests;
              int numTest = readInt("Enter the Number of Tests ");
              totTests = new double[numTest];
              // FOR loop, will stop when it is equal to the number of tests inputed
              for(int countTest = 0; countTest < nTest; countTest = countTest + 1){
                   testScore = JOptionPane.showInputDialog("Please Enter a Test Score: ");
                   tScore = Double.parseDouble(testScore);
                   // If number is less than zero, the loop ends
                   if (tScore < 0){
                        JOptionPane.showMessageDialog(null, "Invaild Test Score!, No Results will be Shown!");
                        break;
                   // If Number is greater than 100, the loop ends
                   else if (tScore > 100){
                        JOptionPane.showMessageDialog(null, "Invaild Test Score!, No Results will be Shown!");     
                        break;
                   // If Test score is Valid, we proceed to the Calculations
                   else
    }I get the following errors...
    --------------------Configuration: <Default>--------------------
    C:\Documents and Settings\**** ****\Desktop\Hand In\TestScoreFinal.java:17: numTest is already defined in main(java.lang.String[])
    int numTest = readInt("Enter the Number of Tests ");
    ^
    C:\Documents and Settings\**** *****Desktop\Hand In\TestScoreFinal.java:17: cannot find symbol
    symbol : method readInt(java.lang.String)
    location: class TestScoreFinal
    int numTest = readInt("Enter the Number of Tests ");
    ^
    C:\Documents and Settings\**** ****\Desktop\Hand In\TestScoreFinal.java:18: incompatible types
    found : java.lang.String
    required: int
    totTests = new double[numTest];
    ^
    3 errors
    Process completed.

    I lied..god im stupid...final question...
    import javax.swing.JOptionPane;
    public class TestScoreFinal {
         public static void main(String[] args){
              // Declarations
              int numTest;
              String names;
              String testScore;
              double nTest;
              double tScore;
              // Input of Number of Tests
              double[] totTests;
              String num = JOptionPane.showInputDialog("Enter the Number of Tests");
              numTest = Integer.parseInt(num);
              totTests = new double[numTest];
              // FOR loop, will stop when it is equal to the number of tests inputed
              for(int i = 0; i < totTests.length; i++){
                   testScore = JOptionPane.showInputDialog("Please Enter a Test Score: ");
                   tScore = Double.parseDouble(testScore);
                   String names = JOptionPane.showInputDialog("Enter the Students Name: ");
                   String[] name = new String[names];
                   // If number is less than zero, the loop ends
                   if (tScore < 0){
                        JOptionPane.showMessageDialog(null, "Invaild Test Score!, No Results will be Shown!");
                        break;
                   // If Number is greater than 100, the loop ends
                   else if (tScore > 100){
                        JOptionPane.showMessageDialog(null, "Invaild Test Score!, No Results will be Shown!");     
                        break;
                   // If Test score is Valid, we proceed to the Calculations
                   else
    }what did i do wrong here? im pretty sure it should be working!
    --------------------Configuration: <Default>--------------------
    C:\Documents and Settings\********Desktop\Hand In\TestScoreFinal.java:30: names is already defined in main(java.lang.String[])
    String names = JOptionPane.showInputDialog("Enter the Students Name: ");
    ^
    C:\Documents and Settings\********\Desktop\Hand In\TestScoreFinal.java:31: incompatible types
    found : java.lang.String
    required: int
    String[] name = new String[names];
    ^
    2 errors
    Process completed.

Maybe you are looking for

  • How to connect satellite receiver to mac

    I dont have TV and I wanna connect my reciver to my macbook pro does anyone have any idea ?! I have seen this video http://www.youtube.com/watch?v=bKacgqxqH-Q but he is using Firewire my reciever doesnt have Firewire, can i connect it to HDMI ?!

  • D-Link DIR-625 as a bridge

    I have an old DIR-625 that I'd like to use as a bridge to my DIR-655. I can't figure out how to make this work. I've found the following posts, but they're "archived" and I can't post to them. I'd love anyone's help, especially if those in the follow

  • Libopenal.so is truncated

    i keep getting this message after running pacman. /sbin/ldconfig: file /usr/lib/libopenal.so.0 is truncated /sbin/ldconfig: file /usr/lib/libopenal.so.0.0.0 is truncated /sbin/ldconfig: file /usr/lib/libopenal.so is truncated

  • End of clip play from beginning.

    When playing the last clip to the end... it jumps to the very beginning and starts playing from the very beginning. What is the trick to turning off this feature? Thanks Marv.

  • My storage is almost used up by 40gigs of'Other'. What is this and how do I reduce it?

    Can anyone help on this storage problem? On a PC you just run disk clean up routine but what do you do on a Mac?