DrawLine using double instead of int

I'm trying to use the java.awt to draw a line but I would like to use doubles instead of ints.
the normal way would be to use drawline(int x, int y , int x2 , int y2);
but i cant find a way to drawline( double x, double y, double x2, double y2)
any idea's?
Some more detail about this is I�m trying to create a package to draw a graph and my points are in double (and I would like them to stay that way) is there a way?
Many Thanks, John

if you want to keep it in doubles you could use Line2D.Double from the java.awt.geom package. Then instead of a call to drawLine(int, int, int, int) call draw(line2D) passing in the line2D. As it implements the shape interface it will know what to do. Note to do this call you'll have to cast the Graphics object to a Graphics2D.
Hope this helps
Mike

Similar Messages

  • Creating polygons with an array of doubles instead of ints

    Hi,
    I want to create a polygon using:
    Polygon u = new Polygon(xPoints, yPoints, numTs);
    my problem is that my x & y points are stored in double arrays not ints. Is there a way to create a polygon using double arrays instead of ints?
    cheers,
    elmicko

    or cast them as int. imaginr posX, posY, width and height are doubles.
    Rectangle rect = new Rectangle( (int)posX, (int)posY, (int)width,(int)height );or, with an array of doubles:
    Rectangle rect = new Rectangle( (int)array[0], (int)array[1], (int)array[2],(int)array[3] );

  • JSlider using double values instead of INT

    I need to create a slider that uses double values instead of ints...
    the default constructor is JSlider temp = new JSlider(JSlider.HORIZONTAL, int, int, int)....but i need to use
    JSlider temp = new JSlider(JSlider.HORIZONTAL, double,double,double)
    I want my slider to go from like 1.0 to 10.0 ....any ideas?
    thanks

    me has ritten a sample code fur ya... mite help...
    sorrie... not commented properly...
    import java.awt.event.*;
    import java.util.Vector;
    import javax.swing.event.*;
    import java.awt.*;
    import javax.swing.*;
    public class Test extends JPanel {
         //Variable Declarations...
         JPanel valuesPanel;
         public JSlider slider;
         public JTextField midText;
         public JTextField lowText;
         public JTextField highText;
         int precision=1000;//to convert to double...(100-> 2decimal places, 1000->3decimal places.......)
         double lowLimit = 0;
         double midLimit = 5;
         double highLimit = 10;
         public Test() {
              initialize();
              addListeners();
              initComponents();
              addComponents();
         public void initialize() {
              valuesPanel = new JPanel();
              highText = new JTextField();
              midText = new JTextField();
              lowText = new JTextField();
              slider = new JSlider();
         public void addListeners() {
              addTextListenerTo( highText );
              addTextListenerTo( midText );
              addTextListenerTo( lowText );
              // if the slider is moved, the value of the mid will be updated in the testbox.
              // Sliders work on integers and not on double. so the limits are divided by precision to get a double number.
              slider.addChangeListener(
                   new ChangeListener() {
                        public void stateChanged( ChangeEvent e ) {
                             double n = ( double ) ( ( JSlider ) e.getSource() ).getValue();
                             midLimit = n / precision;
                             midText.setText( Double.toString( midLimit ) );
         * Sets different attributes and properties of the components
         public void initComponents() {
              highText.setText( Double.toString( highLimit ) );
              midText.setText( Double.toString( midLimit ) );
              lowText.setText( Double.toString( lowLimit ) );
              slider.setPaintTrack( true );
              slider.setPaintTicks( true );
              slider.setMinimum( ( int ) ( lowLimit * precision ) );
              slider.setValue( ( int ) ( lowLimit * precision ) );
              slider.setMaximum( ( int ) ( highLimit * precision ) );
         * Add all the components to the container (Panel).
         public void addComponents() {
              setLayout( new BorderLayout() );
              valuesPanel.setLayout( new GridLayout( 3, 3, 5, 5 ) );
              valuesPanel.add( new JLabel("Low") );          
              valuesPanel.add( highText );
              valuesPanel.add( new JLabel("Mid") );
              valuesPanel.add( midText );
              valuesPanel.add( new JLabel("High") );
              valuesPanel.add( lowText );
              add( valuesPanel, BorderLayout.CENTER);
              add( slider, BorderLayout.SOUTH);
         * Adds Focus and Action Listeners to the TextFields
         public void addTextListenerTo( JTextField textField ) {
              textField.addFocusListener(
                   new FocusAdapter() {
                        public void focusLost( FocusEvent evt ) {
                             updateLimits( ( JTextField ) evt.getSource() );
                        public void focusGained( FocusEvent evt ) {
                             String tempOldString = ( ( JTextField ) evt.getSource() ).getText();
              textField.addActionListener(
                   new ActionListener() {
                        public void actionPerformed( ActionEvent evt ) {
                             updateLimits( ( JTextField ) evt.getSource() );
         * This function is called when any action is performed on the text. It checks
         * if the value is valid and if not it displays a message. Also it updates the
         * slider value.
         *@param textField
         public void updateLimits( JTextField textField ) {
              double tempN = 0;
              try {
                   tempN = Double.parseDouble( textField.getText() );
                   if ( textField.equals( lowText ) ) {
                        lowLimit = tempN;
                        slider.setMinimum( ( int ) ( lowLimit * precision ) );
                   else if ( textField.equals( highText ) ) {
                        highLimit = tempN;
                        slider.setMaximum( ( int ) ( highLimit * precision ) );
                   else if ( textField.equals( midText ) ) {
                        midLimit = tempN;
                        slider.setValue( ( int ) ( midLimit * precision ) );
              } catch ( Exception ex ) {
                   JOptionPane.showMessageDialog( this, "Not a Number", "Error !!!", JOptionPane.WARNING_MESSAGE );
                   textField.setText( "0" );
         public static void main(String args[]) {
         JFrame f=new JFrame("test Frame");
         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         f.getContentPane().add(new Test());
         f.pack();
         f.setVisible(true);

  • C# use textboxes instead of numericupdowns

    Okay, so i have a program that calculates grades, but there is a problem that i didn't quite think through (people have 0's in their classes) and i have coded my program to not include 0's in the numeric updown. I would like to replace all numeric updowns
    with textboxes, and then do the exact same thing, but only disregard the textbox from the averaging process if it is blank, or has letters. I will provide my code for the numericupdown and for hi coded the program
    itself.
    private void timer1_Tick(object sender, EventArgs e)
    List<NumericUpDown> numList = new List<NumericUpDown>();
    foreach (Control c in this.Controls)
    if (c.GetType() == typeof(NumericUpDown))
    NumericUpDown n = (NumericUpDown)c;
    numList.Add(n);
    var result = numList.GroupBy(num => num.Location.X, n => n.Value).Select(r => new
    ColumnNo = r.Key,
    ColumnAverage = r.Where(x => x > 0).DefaultIfEmpty(0).Average()
    }).ToList();
    result.Sort((a, b) => a.ColumnNo.CompareTo(b.ColumnNo));
    if (result.Count > 0)
    decimal percentage = 0.00M, total = 0.00M;
    if (checkEdit1.Checked == true)
    labelControl1.Text = "AVG: " + result[0].ColumnAverage;
    if (decimal.TryParse(textEdit3.Text, out percentage))
    total += (percentage / 100 * result[0].ColumnAverage);
    else
    labelControl1.Text = "Not Used";
    So basically i want to do the EXACT same thing but use textboxes instead of numericupdowns. i want to stress i also have to change that it WILL include 0's, and exclude blank textboxes. i have tried to mess with it and has gotten too complicated for me.
    any help is appretiated
    Eat Mold. Subway

    Ok I built a core below, it's a proof of concept to show how datagridview can fit your requirements:
    First thing is that we created a DataTable which will be used as a datasource for the DGV, you can add columns or rows(notice that null will create empty cells) as you like:
    static DataTable GetTable()
    // Here we create a DataTable with all columns.
    DataTable table = new DataTable();
    table.Columns.Add("Homework", typeof(double));
    table.Columns.Add("ClassWork", typeof(double));
    table.Columns.Add("Quiz", typeof(double));
    table.Columns.Add("Test", typeof(double));
    table.Columns.Add("Final", typeof(double));
    table.Columns.Add("Other", typeof(double));
    //Create rows
    for (int i = 0; i < 30; i++)
    table.Rows.Add(null, 0, 0, 0, 0, 0);
    return table;
    Second thing we bind the above DT to the DataGrid, and create an event on the column changed event of the datatable, which will be used to calcuate the avg as you will see later:
    private void Form1_Load(object sender, EventArgs e)
    dataGridView1.DataSource = GetTable();
    DataTable dataTable = dataGridView1.DataSource as DataTable;
    dataTable.ColumnChanged += DataTable_ColumnChanged;
    Below is a method that will be calculating the avg of a column, when a column value has changed:
    private void ComputeColumn(string columName)
    DataTable dataTable = dataGridView1.DataSource as DataTable;
    object sumObject = null;
    sumObject = dataTable.Compute("Avg(" + columName + ")", "" + columName + " > 0");
    switch (columName)
    case "Homework":
    label1.Text = sumObject.ToString();
    break;
    case "ClassWork":
    //update another lablel
    break;
    default:
    label1.Text = sumObject.ToString();
    break;
    label1.Text = sumObject.ToString();
    Below are the events, One for the the datacolumn  value change, and the other is to allow only numeric or decimal values to be entered into the cells:
    private void DataTable_ColumnChanged(object sender, DataColumnChangeEventArgs e)
    ComputeColumn(e.Column.ToString());
    private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
    if (e.Control is TextBox)
    TextBox tb = e.Control as TextBox;
    tb.KeyPress += new KeyPressEventHandler(tb_KeyPress);
    void tb_KeyPress(object sender, KeyPressEventArgs e)
    if (!(char.IsDigit(e.KeyChar)))
    if (e.KeyChar != '\b' && e.KeyChar != '.') //allow the backspace key and . char
    e.Handled = true;
    And the result:
    You still have the calculation of the final grade but that is easy to accomplish.
    You can download this demo from:
    Demo
    Fouad Roumieh

  • Exception access violation using jlong instead of jint

    Hi,
    I hope you can help me.
    I'm using Java5 under Windows XP and I'm developing under Eclipse.
    I try to use an "old" c-Application accesed via JNI.
    Status Quo is that, I have access to the c-side, over my JNI-conform DLL. My current task is to translate the c-side structs to java-objects. This also works, but only with limitation.
    Calling methods bidirectional is working, manipulation a java-object is like a walk on an warm and sunny Saturday afternoon.
    But I'm not able to use all possible parameters (for now I have tried to use jobject, jstring, jint, jboolean, jlong).
    The first problem I had, were using Strings as parameters, but this now I deal with the loopway over java/lang/object (using java/lang/String results in an access_violation).
    The next problem, and the harder one, is, that I cannot use the type long or jlong.
    int (jint) is no problem, with int all works fine, but if I change the environment, creating and using long, I allways get an the access_violation shown below.
    Is there anything, I need to know?
    working c-side-code:
    jobject someObject;
    jint anIntegerValue;
    anIntegerValue =5;               
    jmethodID mid3 = (*env)->GetMethodID(env, cl, "initReturnSomeObject", "(ILjava/lang/Object;)Ljava/lang/Object;");
                   if(mid3 == (jmethodID)0) printf("\ndooofes MethodName4!\n");
                             else {
                                  const char* myParams;
                                  myParams = "ooooohwow!!!";
                                  someObject = (*env)->CallObjectMethod(env, jobj, mid3,
                                             anIntegerValue, (*env)->NewStringUTF(env, myParams));
                             }wokring java-side-code
    public Object initReturnSomeObject(int i, Object obj) {
              String s = (String)obj;
              System.out.println("String: "+s+"\nInteger: "+i);
              some = new SomeObject(s,i);
              if(some==null) System.out.println("Some is not yet initialized, FEAR!!!!\n");
              else System.out.println("Yoh, I'm soooo many good!! \nSome:\nString: "+some.getS1()+"\nInt: "+some.getI1()+"\n");
              return (Object)some;
    so, und this code, doesn't work. you can see, the changes are dramatically!! ;)
    sorry for my sarcasm. I do not know, why it doesn't work.
    jlong aLongValue;
    aLongValue = 2;
    jmethodID mid3 = (*env)->GetMethodID(env, cl, "initReturnSomeObject", "(JLjava/lang/Object;)Ljava/lang/Object;");
                   if(mid3 == (jmethodID)0) printf("\ndooofes MethodName4!\n");
                             else {
                                  const char* myParams;
                                     myParams = "ooooohwow!!!";
                                  someObject = (*env)->CallObjectMethod(env, jobj, mid3,
                                            aLongValue, (*env)->NewStringUTF(env, myParams));
         public Object initReturnSomeObject(long i, Object obj) {
              String s = (String)obj;
              System.out.println("String: "+s+"\nInteger: "+i+"\nLong: ");
              some = new SomeObject(s,(int)i);
              if(some==null) System.out.println("Some is not yet initialized, FEAR!!!!\n");
              else System.out.println("Yoh, I'm soooo many good!! \nSome:\nString: "+some.getS1()+"\nInt: "+some.getI1()+"\n");
              return (Object)some;
    # An unexpected error has been detected by Java Runtime Environment:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d942975, pid=1784, tid=1648
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
    # Problematic frame:
    # V  [jvm.dll+0x182975]
    # An error report file with more information is saved as hs_err_pid1784.log
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    #do you need some other informations or details? something out of the log-file? ok, i have to take the bus, so sorry for uncomplete informations or sentences ;)
    till later.

    Hi,
    I'm quite sure, the signature is correct. For failure check, yesterday I ran javap to check the signature, but I do also mean, that I changed the signature afterwards for several time. And, it works ;) at least the way, using Integer.
    Trying to use java/lang/String everytime I got the Error, that the method could not be found - this is the part, I was wrong in my description. So the error-Message is a different one.
    Belonging to the question for assumptions I made... it's difficult. I'm quite new to JNI, so, I don't know, what I can assume to do. The Method call seems to be a kind of reflection-mechanism. So I assume that the behaviour is similar. But reflection I'm not very firm, either ^^.
    What I do assume is, that the parameter-value J fits to the java-type jlong. But a work around on this, I will try today. getting the jlong into an char* or using long instead of jlong or using Ljava/lang/Long; or a casted Long as Ljava/lang/Object; ...
    I'm anxious to the ideas, I will have, bypassing this point. if there is no way, I will write a file, send a email or something like this ;)
    Thx for thinking about my problem jschel!! It's great not to be alone.
    John

  • [SOLVED]Xorg crash with some applications when using double screen

    Hi,
    I have a TV that I often use to watch dvd from my computer, and to do that I've set it up as a second screen in my xorg.conf, but on a daily basis I use a xorg.conf file with only my main screen. Up until last week I was able to use my second screen without problem, but yesterday I tried and it crashed instantly.
    So I ran a few tests, amsn and vlc seems to be 2 applications that makes X crash (though there might be other, but I seem to be able to use chromium firefox and ktorrent just fine).
    My WM is not to blame, I've launched X without any WM and vlc still makes X crash.
    The problem does not happen when using a single screen.
    I thought that my xorg.conf might be the problem, so I used nvidia-settings to create a new one, but that didn't change anything.
    Here are my xorg.conf used for dual screen, and the logfile from the Xorg crash:
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 1.0 (buildmeister@builder62) Wed May 27 01:58:49 PDT 2009
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    Screen 1 "Screen1" RightOf "Screen0"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    Option "Xinerama" "1"
    EndSection
    Section "Files"
    EndSection
    Section "ServerFlags"
    Option "Xinerama" "1"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "InputClass"
    Identifier "Keyboard Defaults"
    MatchIsKeyboard "yes"
    Option "XkbLayout" "fr"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Lite-On e1770NSL/T"
    HorizSync 30.0 - 70.0
    VertRefresh 50.0 - 160.0
    Option "DPMS"
    EndSection
    Section "Monitor"
    Identifier "Monitor1"
    VendorName "Unknown"
    ModelName "CRT-1"
    HorizSync 31.5 - 64.0
    VertRefresh 56.0 - 75.0
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8800 GT"
    BusID "PCI:1:0:0"
    Screen 0
    EndSection
    Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8800 GT"
    BusID "PCI:1:0:0"
    Screen 1
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "TwinView" "0"
    Option "TwinViewXineramaInfoOrder" "CRT-0"
    Option "metamodes" "CRT-0: 1280x1024 +0+0"
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen1"
    Device "Device1"
    Monitor "Monitor1"
    DefaultDepth 24
    Option "TwinView" "0"
    Option "metamodes" "CRT-1: 1360x768 +0+0"
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    [ 12049.854]
    X.Org X Server 1.9.0
    Release Date: 2010-08-20
    [ 12049.855] X Protocol Version 11, Revision 0
    [ 12049.855] Build Operating System: Linux 2.6.34-ARCH x86_64
    [ 12049.855] Current Operating System: Linux Arch 2.6.35-ARCH #1 SMP PREEMPT Wed Sep 29 08:45:18 CEST 2010 x86_64
    [ 12049.855] Kernel command line: root=/dev/disk/by-uuid/132b76f3-06e9-4838-944f-43ac4deccebb ro
    [ 12049.855] Build Date: 24 August 2010 01:44:37PM
    [ 12049.855]
    [ 12049.855] Current version of pixman: 0.18.4
    [ 12049.856] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 12049.856] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 12049.856] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Oct 5 17:25:50 2010
    [ 12049.857] (==) Using config file: "/etc/X11/xorg.conf"
    [ 12049.857] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 12049.857] (==) ServerLayout "Layout0"
    [ 12049.857] (**) |-->Screen "Screen0" (0)
    [ 12049.857] (**) | |-->Monitor "Monitor0"
    [ 12049.857] (**) | |-->Device "Device0"
    [ 12049.857] (**) |-->Screen "Screen1" (1)
    [ 12049.857] (**) | |-->Monitor "Monitor1"
    [ 12049.857] (**) | |-->Device "Device1"
    [ 12049.857] (**) |-->Input Device "Keyboard0"
    [ 12049.857] (**) |-->Input Device "Mouse0"
    [ 12049.857] (**) Option "Xinerama" "1"
    [ 12049.857] (==) Automatically adding devices
    [ 12049.857] (==) Automatically enabling devices
    [ 12049.857] (**) Xinerama: enabled
    [ 12049.857] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 12049.857] Entry deleted from font path.
    [ 12049.857] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/Type1/,
    /usr/share/fonts/100dpi/,
    /usr/share/fonts/75dpi/
    [ 12049.857] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 12049.857] (WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
    [ 12049.857] (WW) Disabling Keyboard0
    [ 12049.857] (WW) Disabling Mouse0
    [ 12049.857] (II) Loader magic: 0x7d4880
    [ 12049.857] (II) Module ABI versions:
    [ 12049.857] X.Org ANSI C Emulation: 0.4
    [ 12049.857] X.Org Video Driver: 8.0
    [ 12049.857] X.Org XInput driver : 11.0
    [ 12049.857] X.Org Server Extension : 4.0
    [ 12049.858] (--) PCI:*(0:1:0:0) 10de:0611:1462:1170 rev 162, Mem @ 0xfd000000/16777216, 0xd0000000/268435456, 0xfa000000/33554432, I/O @ 0x0000cc00/128, BIOS @ 0x????????/131072
    [ 12049.858] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    [ 12049.858] (II) LoadModule: "extmod"
    [ 12049.858] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
    [ 12049.858] (II) Module extmod: vendor="X.Org Foundation"
    [ 12049.858] compiled for 1.9.0, module version = 1.0.0
    [ 12049.858] Module class: X.Org Server Extension
    [ 12049.858] ABI class: X.Org Server Extension, version 4.0
    [ 12049.858] (II) Loading extension MIT-SCREEN-SAVER
    [ 12049.858] (II) Loading extension XFree86-VidModeExtension
    [ 12049.858] (II) Loading extension XFree86-DGA
    [ 12049.858] (II) Loading extension DPMS
    [ 12049.858] (II) Loading extension XVideo
    [ 12049.858] (II) Loading extension XVideo-MotionCompensation
    [ 12049.858] (II) Loading extension X-Resource
    [ 12049.858] (II) LoadModule: "dbe"
    [ 12049.859] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
    [ 12049.859] (II) Module dbe: vendor="X.Org Foundation"
    [ 12049.859] compiled for 1.9.0, module version = 1.0.0
    [ 12049.859] Module class: X.Org Server Extension
    [ 12049.859] ABI class: X.Org Server Extension, version 4.0
    [ 12049.859] (II) Loading extension DOUBLE-BUFFER
    [ 12049.859] (II) LoadModule: "glx"
    [ 12049.859] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 12049.866] (II) Module glx: vendor="NVIDIA Corporation"
    [ 12049.867] compiled for 4.0.2, module version = 1.0.0
    [ 12049.867] Module class: X.Org Server Extension
    [ 12049.867] (II) NVIDIA GLX Module 256.53 Fri Aug 27 20:50:26 PDT 2010
    [ 12049.867] (II) Loading extension GLX
    [ 12049.867] (II) LoadModule: "record"
    [ 12049.867] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
    [ 12049.867] (II) Module record: vendor="X.Org Foundation"
    [ 12049.867] compiled for 1.9.0, module version = 1.13.0
    [ 12049.867] Module class: X.Org Server Extension
    [ 12049.867] ABI class: X.Org Server Extension, version 4.0
    [ 12049.867] (II) Loading extension RECORD
    [ 12049.867] (II) LoadModule: "dri"
    [ 12049.867] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
    [ 12049.867] (II) Module dri: vendor="X.Org Foundation"
    [ 12049.867] compiled for 1.9.0, module version = 1.0.0
    [ 12049.867] ABI class: X.Org Server Extension, version 4.0
    [ 12049.867] (II) Loading extension XFree86-DRI
    [ 12049.867] (II) LoadModule: "dri2"
    [ 12049.867] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 12049.867] (II) Module dri2: vendor="X.Org Foundation"
    [ 12049.867] compiled for 1.9.0, module version = 1.2.0
    [ 12049.867] ABI class: X.Org Server Extension, version 4.0
    [ 12049.867] (II) Loading extension DRI2
    [ 12049.867] (II) LoadModule: "nvidia"
    [ 12049.867] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 12049.868] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 12049.868] compiled for 4.0.2, module version = 1.0.0
    [ 12049.868] Module class: X.Org Video Driver
    [ 12049.868] (II) NVIDIA dlloader X Driver 256.53 Fri Aug 27 20:29:45 PDT 2010
    [ 12049.868] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [ 12049.868] (--) using VT number 7
    [ 12049.869] (II) Loading sub module "fb"
    [ 12049.869] (II) LoadModule: "fb"
    [ 12049.869] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 12049.870] (II) Module fb: vendor="X.Org Foundation"
    [ 12049.870] compiled for 1.9.0, module version = 1.0.0
    [ 12049.870] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 12049.870] (II) Loading sub module "wfb"
    [ 12049.870] (II) LoadModule: "wfb"
    [ 12049.870] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 12049.870] (II) Module wfb: vendor="X.Org Foundation"
    [ 12049.870] compiled for 1.9.0, module version = 1.0.0
    [ 12049.870] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 12049.870] (II) Loading sub module "ramdac"
    [ 12049.870] (II) LoadModule: "ramdac"
    [ 12049.870] (II) Module "ramdac" already built-in
    [ 12049.870] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
    [ 12049.870] (==) NVIDIA(0): RGB weight 888
    [ 12049.870] (==) NVIDIA(0): Default visual is TrueColor
    [ 12049.870] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
    [ 12049.870] (**) NVIDIA(0): Option "TwinView" "0"
    [ 12049.870] (**) NVIDIA(0): Option "MetaModes" "CRT-0: 1280x1024 +0+0"
    [ 12049.870] (**) NVIDIA(0): Option "TwinViewXineramaInfoOrder" "CRT-0"
    [ 12049.870] (**) NVIDIA(0): Enabling RENDER acceleration
    [ 12049.870] (II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
    [ 12049.870] (II) NVIDIA(0): enabled.
    [ 12049.955] (WW) NVIDIA(GPU-0): Unable to read EDID for display device CRT-1
    [ 12049.957] (II) NVIDIA(0): NVIDIA GPU GeForce 8800 GT (G92) at PCI:1:0:0 (GPU-0)
    [ 12049.957] (--) NVIDIA(0): Memory: 524288 kBytes
    [ 12049.957] (--) NVIDIA(0): VideoBIOS: 62.92.23.00.00
    [ 12049.957] (II) NVIDIA(0): Detected PCI Express Link width: 16X
    [ 12049.957] (--) NVIDIA(0): Interlaced video modes are supported on this GPU
    [ 12049.957] (--) NVIDIA(0): Connected display device(s) on GeForce 8800 GT at PCI:1:0:0:
    [ 12049.957] (--) NVIDIA(0): Lite-On e1770NSL/T (CRT-0)
    [ 12049.957] (--) NVIDIA(0): CRT-1
    [ 12049.957] (--) NVIDIA(0): Lite-On e1770NSL/T (CRT-0): 400.0 MHz maximum pixel clock
    [ 12049.957] (--) NVIDIA(0): CRT-1: 400.0 MHz maximum pixel clock
    [ 12049.960] (II) NVIDIA(0): Display Device found referenced in MetaMode: CRT-0
    [ 12049.967] (II) NVIDIA(0): Assigned Display Device: CRT-0
    [ 12049.967] (II) NVIDIA(0): Validated modes:
    [ 12049.967] (II) NVIDIA(0): "CRT-0:1280x1024+0+0"
    [ 12049.967] (II) NVIDIA(0): Virtual screen size determined to be 1280 x 1024
    [ 12049.999] (--) NVIDIA(0): DPI set to (101, 108); computed from "UseEdidDpi" X config
    [ 12049.999] (--) NVIDIA(0): option
    [ 12049.999] (WW) NVIDIA(0): 32-bit ARGB GLX visuals are not currently supported with the
    [ 12049.999] (WW) NVIDIA(0): Xinerama extension.
    [ 12049.999] (WW) NVIDIA(0): Disabling 32-bit ARGB GLX visuals.
    [ 12049.999] (**) NVIDIA(1): Depth 24, (--) framebuffer bpp 32
    [ 12049.999] (==) NVIDIA(1): RGB weight 888
    [ 12049.999] (==) NVIDIA(1): Default visual is TrueColor
    [ 12049.999] (==) NVIDIA(1): Using gamma correction (1.0, 1.0, 1.0)
    [ 12049.999] (**) NVIDIA(1): Option "TwinView" "0"
    [ 12049.999] (**) NVIDIA(1): Option "MetaModes" "CRT-1: 1360x768 +0+0"
    [ 12049.999] (**) NVIDIA(1): Enabling RENDER acceleration
    [ 12049.999] (II) NVIDIA(1): NVIDIA GPU GeForce 8800 GT (G92) at PCI:1:0:0 (GPU-0)
    [ 12049.999] (--) NVIDIA(1): Memory: 524288 kBytes
    [ 12049.999] (--) NVIDIA(1): VideoBIOS: 62.92.23.00.00
    [ 12049.999] (II) NVIDIA(1): Detected PCI Express Link width: 16X
    [ 12049.999] (--) NVIDIA(1): Interlaced video modes are supported on this GPU
    [ 12049.999] (--) NVIDIA(1): Connected display device(s) on GeForce 8800 GT at PCI:1:0:0:
    [ 12049.999] (--) NVIDIA(1): Lite-On e1770NSL/T (CRT-0)
    [ 12049.999] (--) NVIDIA(1): CRT-1
    [ 12049.999] (--) NVIDIA(1): Lite-On e1770NSL/T (CRT-0): 400.0 MHz maximum pixel clock
    [ 12049.999] (--) NVIDIA(1): CRT-1: 400.0 MHz maximum pixel clock
    [ 12050.002] (II) NVIDIA(1): Display Device found referenced in MetaMode: CRT-1
    [ 12050.006] (II) NVIDIA(1): Assigned Display Device: CRT-1
    [ 12050.006] (WW) NVIDIA(1): No valid modes for "CRT-1:1360x768+0+0"; removing.
    [ 12050.006] (WW) NVIDIA(1):
    [ 12050.006] (WW) NVIDIA(1): Unable to validate any modes; falling back to the default mode
    [ 12050.006] (WW) NVIDIA(1): "nvidia-auto-select".
    [ 12050.006] (WW) NVIDIA(1):
    [ 12050.006] (II) NVIDIA(1): Validated modes:
    [ 12050.006] (II) NVIDIA(1): "nvidia-auto-select"
    [ 12050.006] (II) NVIDIA(1): Virtual screen size determined to be 1024 x 768
    [ 12050.009] (WW) NVIDIA(1): Unable to get display device CRT-1's EDID; cannot compute DPI
    [ 12050.009] (WW) NVIDIA(1): from CRT-1's EDID.
    [ 12050.009] (==) NVIDIA(1): DPI set to (75, 75); computed from built-in default
    [ 12050.009] (WW) NVIDIA(1): 32-bit ARGB GLX visuals are not currently supported with the
    [ 12050.009] (WW) NVIDIA(1): Xinerama extension.
    [ 12050.009] (WW) NVIDIA(1): Disabling 32-bit ARGB GLX visuals.
    [ 12050.009] (--) Depth 24 pixmap format is 32 bpp
    [ 12050.009] (II) NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.
    [ 12050.010] (II) NVIDIA(0): Initialized GPU GART.
    [ 12050.014] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
    [ 12050.014] (II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
    [ 12050.014] (II) NVIDIA(0): configuration option may not be set correctly. When the
    [ 12050.014] (II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
    [ 12050.014] (II) NVIDIA(0): try to use it to receive ACPI event notifications. For
    [ 12050.014] (II) NVIDIA(0): details, please see the "ConnectToAcpid" and
    [ 12050.014] (II) NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
    [ 12050.014] (II) NVIDIA(0): Config Options in the README.
    [ 12050.017] (II) NVIDIA(0): Setting mode "CRT-0:1280x1024+0+0"
    [ 12050.049] (II) Loading extension NV-GLX
    [ 12050.064] (II) NVIDIA(0): Initialized OpenGL Acceleration
    [ 12050.071] (==) NVIDIA(0): Disabling shared memory pixmaps
    [ 12050.071] (II) NVIDIA(0): Initialized X Rendering Acceleration
    [ 12050.071] (==) NVIDIA(0): Backing store disabled
    [ 12050.071] (==) NVIDIA(0): Silken mouse enabled
    [ 12050.085] (**) NVIDIA(0): DPMS enabled
    [ 12050.085] (II) Loading extension NV-CONTROL
    [ 12050.085] (II) Loading sub module "dri2"
    [ 12050.085] (II) LoadModule: "dri2"
    [ 12050.085] (II) Reloading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 12050.085] (II) NVIDIA(0): [DRI2] Setup complete
    [ 12050.085] (==) RandR enabled
    [ 12050.086] (II) NVIDIA(1): Initialized GPU GART.
    [ 12050.090] (II) NVIDIA(1): ACPI: failed to connect to the ACPI event daemon; the daemon
    [ 12050.090] (II) NVIDIA(1): may not be running or the "AcpidSocketPath" X
    [ 12050.090] (II) NVIDIA(1): configuration option may not be set correctly. When the
    [ 12050.090] (II) NVIDIA(1): ACPI event daemon is available, the NVIDIA X driver will
    [ 12050.090] (II) NVIDIA(1): try to use it to receive ACPI event notifications. For
    [ 12050.090] (II) NVIDIA(1): details, please see the "ConnectToAcpid" and
    [ 12050.090] (II) NVIDIA(1): "AcpidSocketPath" X configuration options in Appendix B: X
    [ 12050.090] (II) NVIDIA(1): Config Options in the README.
    [ 12050.090] (II) NVIDIA(1): Setting mode "nvidia-auto-select"
    [ 12050.145] (II) NVIDIA(1): Initialized OpenGL Acceleration
    [ 12050.149] (==) NVIDIA(1): Disabling shared memory pixmaps
    [ 12050.149] (II) NVIDIA(1): Initialized X Rendering Acceleration
    [ 12050.149] (==) NVIDIA(1): Backing store disabled
    [ 12050.149] (==) NVIDIA(1): Silken mouse enabled
    [ 12050.157] (==) NVIDIA(1): DPMS enabled
    [ 12050.158] (II) Loading sub module "dri2"
    [ 12050.158] (II) LoadModule: "dri2"
    [ 12050.158] (II) Reloading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 12050.158] (II) NVIDIA(1): [DRI2] Setup complete
    [ 12050.158] (==) RandR enabled
    [ 12050.158] (II) Initializing built-in extension Generic Event Extension
    [ 12050.158] (II) Initializing built-in extension SHAPE
    [ 12050.158] (II) Initializing built-in extension MIT-SHM
    [ 12050.158] (II) Initializing built-in extension XInputExtension
    [ 12050.158] (II) Initializing built-in extension XTEST
    [ 12050.158] (II) Initializing built-in extension BIG-REQUESTS
    [ 12050.158] (II) Initializing built-in extension SYNC
    [ 12050.158] (II) Initializing built-in extension XKEYBOARD
    [ 12050.158] (II) Initializing built-in extension XC-MISC
    [ 12050.158] (II) Initializing built-in extension SECURITY
    [ 12050.158] (II) Initializing built-in extension XINERAMA
    [ 12050.158] (II) Initializing built-in extension XFIXES
    [ 12050.158] (II) Initializing built-in extension RENDER
    [ 12050.158] (II) Initializing built-in extension RANDR
    [ 12050.158] (II) Initializing built-in extension COMPOSITE
    [ 12050.158] (II) Initializing built-in extension DAMAGE
    [ 12050.160] (II) Initializing extension GLX
    [ 12050.367] (II) config/udev: Adding input device Power Button (/dev/input/event3)
    [ 12050.367] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 12050.367] (II) LoadModule: "evdev"
    [ 12050.367] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 12050.367] (II) Module evdev: vendor="X.Org Foundation"
    [ 12050.367] compiled for 1.9.0, module version = 2.5.0
    [ 12050.367] Module class: X.Org XInput Driver
    [ 12050.367] ABI class: X.Org XInput driver, version 11.0
    [ 12050.367] (**) Power Button: always reports core events
    [ 12050.367] (**) Power Button: Device: "/dev/input/event3"
    [ 12050.375] (--) Power Button: Found keys
    [ 12050.375] (II) Power Button: Configuring as keyboard
    [ 12050.376] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
    [ 12050.376] (**) Option "xkb_rules" "evdev"
    [ 12050.376] (**) Option "xkb_model" "evdev"
    [ 12050.376] (**) Option "xkb_layout" "us"
    [ 12050.399] (II) config/udev: Adding input device Power Button (/dev/input/event2)
    [ 12050.399] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 12050.399] (**) Power Button: always reports core events
    [ 12050.399] (**) Power Button: Device: "/dev/input/event2"
    [ 12050.415] (--) Power Button: Found keys
    [ 12050.415] (II) Power Button: Configuring as keyboard
    [ 12050.415] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
    [ 12050.415] (**) Option "xkb_rules" "evdev"
    [ 12050.415] (**) Option "xkb_model" "evdev"
    [ 12050.415] (**) Option "xkb_layout" "us"
    [ 12050.416] (II) config/udev: Adding input device UVC Camera (046d:0802) (/dev/input/event4)
    [ 12050.416] (**) UVC Camera (046d:0802): Applying InputClass "evdev keyboard catchall"
    [ 12050.416] (**) UVC Camera (046d:0802): always reports core events
    [ 12050.416] (**) UVC Camera (046d:0802): Device: "/dev/input/event4"
    [ 12050.428] (--) UVC Camera (046d:0802): Found keys
    [ 12050.428] (II) UVC Camera (046d:0802): Configuring as keyboard
    [ 12050.428] (II) XINPUT: Adding extended input device "UVC Camera (046d:0802)" (type: KEYBOARD)
    [ 12050.428] (**) Option "xkb_rules" "evdev"
    [ 12050.428] (**) Option "xkb_model" "evdev"
    [ 12050.428] (**) Option "xkb_layout" "us"
    [ 12050.430] (II) config/udev: Adding input device Microsoft Microsoft 3-Button Mouse with IntelliEye(TM) (/dev/input/event5)
    [ 12050.431] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): Applying InputClass "evdev pointer catchall"
    [ 12050.431] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): always reports core events
    [ 12050.431] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): Device: "/dev/input/event5"
    [ 12050.442] (--) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): Found 3 mouse buttons
    [ 12050.442] (--) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): Found scroll wheel(s)
    [ 12050.442] (--) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): Found relative axes
    [ 12050.442] (--) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): Found x and y relative axes
    [ 12050.442] (II) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): Configuring as mouse
    [ 12050.442] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): YAxisMapping: buttons 4 and 5
    [ 12050.442] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [ 12050.442] (II) XINPUT: Adding extended input device "Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)" (type: MOUSE)
    [ 12050.442] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): (accel) keeping acceleration scheme 1
    [ 12050.442] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): (accel) acceleration profile 0
    [ 12050.442] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): (accel) acceleration factor: 2.000
    [ 12050.442] (**) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): (accel) acceleration threshold: 4
    [ 12050.442] (II) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): initialized for relative axes.
    [ 12050.442] (II) config/udev: Adding input device Microsoft Microsoft 3-Button Mouse with IntelliEye(TM) (/dev/input/mouse0)
    [ 12050.442] (II) No input driver/identifier specified (ignoring)
    [ 12050.444] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
    [ 12050.444] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
    [ 12050.444] (**) AT Translated Set 2 keyboard: always reports core events
    [ 12050.444] (**) AT Translated Set 2 keyboard: Device: "/dev/input/event0"
    [ 12050.458] (--) AT Translated Set 2 keyboard: Found keys
    [ 12050.458] (II) AT Translated Set 2 keyboard: Configuring as keyboard
    [ 12050.458] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
    [ 12050.458] (**) Option "xkb_rules" "evdev"
    [ 12050.458] (**) Option "xkb_model" "evdev"
    [ 12050.458] (**) Option "xkb_layout" "us"
    [ 12050.459] (II) config/udev: Adding input device PC Speaker (/dev/input/event1)
    [ 12050.459] (II) No input driver/identifier specified (ignoring)
    [ 12057.008]
    Backtrace:
    [ 12057.008] 0: X (xorg_backtrace+0x28) [0x49f558]
    [ 12057.008] 1: X (0x400000+0x67939) [0x467939]
    [ 12057.008] 2: /lib/libpthread.so.0 (0x7f6c851f4000+0xf1c0) [0x7f6c852031c0]
    [ 12057.008] 3: X (0x400000+0x130355) [0x530355]
    [ 12057.008] 4: X (0x400000+0x2a2e1) [0x42a2e1]
    [ 12057.008] 5: X (0x400000+0x2123e) [0x42123e]
    [ 12057.008] 6: /lib/libc.so.6 (__libc_start_main+0xfd) [0x7f6c84187c4d]
    [ 12057.008] 7: X (0x400000+0x20de9) [0x420de9]
    [ 12057.008] Segmentation fault at address 0x4
    [ 12057.008]
    Fatal server error:
    [ 12057.008] Caught signal 11 (Segmentation fault). Server aborting
    [ 12057.008]
    [ 12057.008]
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    [ 12057.008] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    [ 12057.008]
    [ 12057.019] (II) Power Button: Close
    [ 12057.019] (II) UnloadModule: "evdev"
    [ 12057.032] (II) Power Button: Close
    [ 12057.032] (II) UnloadModule: "evdev"
    [ 12057.045] (II) UVC Camera (046d:0802): Close
    [ 12057.045] (II) UnloadModule: "evdev"
    [ 12057.069] (II) Microsoft Microsoft 3-Button Mouse with IntelliEye(TM): Close
    [ 12057.069] (II) UnloadModule: "evdev"
    [ 12057.082] (II) AT Translated Set 2 keyboard: Close
    [ 12057.082] (II) UnloadModule: "evdev"
    Last edited by Azriel (2010-10-06 15:09:27)

    Sorry this doesn't really help with the Xinerama problem, but since you are using the nvidia driver, have you considered using Twinview instead? You could do composite stuff too with Twinview - last I knew, Xinerama had problems with things that want to use compositing. I don't know how your setup is but if you're not set on using Xinerama, it might be an option to consider.

  • Converting a double to an int

    Can I convert a variable of type double to a variable of type int? The reason for this is I am creating a program that will draw graphs of parabolas, cubics, etc. and the user will be able to change the values for stretches, translations, etc.
    So my code for the drawing of a parabola at the moment is somewhat primitive, I just want the basic parabola drawn in. I've done a program that does exactly this using Turing (of all things...) but Java is proving to be more picky.
    int count = 0;
    int X = 0;
    double tempY = 0;
    int Y = 0;
    while(count <= 600){
         tempY = Math.pow(X - 300,2) + 200;
         Y = tempY;     //error here
         if(Y >= 0 && Y <= 400){
              g.fillOval(X, Y, 1, 1);
         count++;
         X++;
         }Don't worry about paintComponent() and all that, it's there I'm just posting the necessary parts you guys need to see.
    So the error I get is 'possible loss of precision' at the line indicated, and I know this, it's pretty obvious, but this is what I want/need to do as the fillOval will only accept ints for it's coordinates. I also tried forgetting about having the double value of tempY and doing the math to an int but then I get 'possible loss of precision' in the math line. If anyone can give me ideas/fixes to change a double into an int it would be much appreciated as this is what I really want to do, or if you can come up with alternative ways of doing what I need to do that would also be appreciated.
    EDIT
    In case you are wondering why I am adding and subtracting those values it's because my panel I'm drawing on is (600,400) and of course (0,0) is the top left corner rather than the center where it would be on a Cartesian plane, so I think I've made all the necassary adjustments so (0,0) is now in essentially the center of the panel. It's basically scanning across from the left to right and finding X^2 from '-300' to '300' but only drawing it in if the value for Y will appear in the panel. I know it's pretty fucked up and probably some really messy code, lol. I'm somewhat inexperienced and probably being a bit too adventurous.
    Edited by: vortex on Jan 15, 2008 11:07 AM
    Edited by: vortex on Jan 15, 2008 11:15 AM

    I haven't tried that, I will try that when I get to school. I think the issue could be that -300^2 may be too big to be an int? I was just thinking before I fell asleep about it last night and that could be it too...So naturally I'll just start from say, -100, or even -25 as that isn't exactly gonna fit on the graph so I'm just wasting processor power currently I suppose. Anyways I'm gonna try both of these out and get back to you guys.
    Another issue I'm foreseeing is that one of the graphs is the root of x, so I'm going to be dealing with decimals, that's fine for double but when I turn that into an int (assuming I ever figure out how to, hoping your idea, possibly coupled with mine works) how can I round/drop the decimals?
    Edited by: vortex on Jan 16, 2008 8:10 AM

  • Help!!!!!  anyone know how to change a Double to an int??

    Help!!!!! anyone know how to change a Double to an int?? for use in an array[int].

    I don't know why would you want to depend on a double value to build your array but programmatically just use plain old cast: i = (int) double_value;
    Keep in mind though, the integer value will be truncated.

  • How do I make KDE use smartdimmer instead of ... ?

    Hi!
    I have KDE 4.3 installed on my laptop and the power management options don't work when it comes to dimming my screen. I have just installed smartdimmer, which does work for my screen and I'm wondering how I can tell KDE to use that instead.
    Thanks
    Last edited by steven (2009-10-24 02:10:50)

    There are two different settings involved:
    '''Address Bar Autofill'''
    If you have used HTTPS on a site before, Firefox's address bar autofill feature will prefer the HTTPS address. If you don't mind selecting from the drop-down instead, or simply typing the whole address, you can turn off the address bar autofill. Here's how:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''autofill''' and pause while the list is filtered
    (3) Double-click '''browser.urlbar.autoFill''' to toggle it from true to false.
    '''Address Bar Search'''
    Regarding address bar search, you can change the URL used by the "keyword" service. Please see this thread for links: [https://support.mozilla.org/en-US/questions/955363 Unable to connect to proxy due to automatic https].
    Does that solve it?

  • I just found my old ipod touch (i think 1st generation) and would like to let my toddler use it instead of my phone.  I am trying to download apps but it say I need to update to 4.3 but it won't let me update.  I have the most recent itunes. any idea why?

    I just found my old ipod touch (i think 1st generation) and would like to let my toddler use it instead of my phone.  I am trying to download apps but it say I need to update to 4.3 but it won't let me update.  I have the most recent itunes. any idea why? I saw a thread saying to purchase the newest software (that was posted a few years ago) I paid 4.95 for the software and it's still saying it can't be updated.  Am I just SOL??

    The 1G iPod can only go as high as 3.1.3. The 1G does not have an internal speaker or volume buttons on the upper left edge.
    Identifying iPod models
    To more easily find compatible apps:
    iOSSearch - search the iTunes store for compatible apps.
    Apple Club - filter apps by iOS version.

  • Conky won't use double buffer anymore?

    i posted the other day having issues setting up dual monitors, not that i got any help, but figured i'd mention. anyway, since i've had the dual monitors setup, conky won't run using double buffering for some reason. its in my conky config, and DBE is being loaded in my xorg.conf. so its bugging me now. wondering is anyone has a clue here. my system is fully up to date as of right now, and running an nvidia card, so nvidia driver on a 7900GS video card, might be an 8800, i forget which card is in which box at the moment
    here's my conky config
    alignment top_right
    background yes
    border_width 1
    cpu_avg_samples 2
    default_color white
    default_outline_color black
    default_shade_color black
    draw_borders no
    draw_graph_borders yes
    #draw_outline yes
    draw_shades yes
    use_xft yes
    xftfont DejaVu Sans Mono:size=10
    gap_x 5
    gap_y 5
    minimum_size 5 5
    net_avg_samples 2
    #no_buffers yes
    double_buffer yes
    out_to_console no
    out_to_stderr no
    own_window yes
    own_window_transparent yes
    own_window_class Conky
    own_window_type desktop
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_page
    stippled_borders 0
    update_interval 1.0
    uppercase no
    use_spacer none
    show_graph_scale no
    show_graph_range no
    TEXT
    $nodename - $sysname $kernel on $machine
    Uptime:$color $uptime
    $hr
    CPU > ${freq}MHz ${hr 1}$color
    CPU Usage:$color $cpu% ${cpubar 4}
    ${cpugraph 15,280 ffffff 00A2FF}
    MEMORY $memmax ${hr 1}
    RAM : $mem / $memperc%${alignr}${membar 6,120}
    I/O : ${diskio}${alignr}${diskiograph 6,120}
    DISK > /dev/ ${hr 1}$color
    Root ( sda3 ): ${fs_free /} ${fs_bar 6 /}
    Home ( sda4 ): ${fs_free /home} ${fs_bar 6 /home}
    Movies ( sdb1 ): ${fs_free /home/movies} ${fs_bar 6 /home/movies}
    Windows ( sdc1 ): ${fs_free /mnt/sdc1} ${fs_bar 6 /mnt/sdc1}
    NETWORK > ${addr eth0} ${hr 1}$color
    ${downspeedgraph eth0 15,135 ffffff 00A2FF} ${upspeedgraph eth0 15,135 ffffff 00A2FF}
    Down / Up Speed: ${downspeed eth0} k/s / ${upspeed eth0} k/s
    Down / Up Bytes: ${totaldown eth0} / ${totalup eth0}
    Inbound / Outbound / Total: ${tcp_portmon 1 32767 count} / ${tcp_portmon 32768 61000 count} / ${tcp_portmon 1 65535 count}
    PROCESSES > ${processes} / ${running_processes} ${hr 1}$color
    NAME PID CPU% MEM%
    ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
    ${exec feh --bg-scale "`grep 'wallpaper=' ~/.kde4/share/config/plasma-appletsrc | tail --lines=1 | sed 's/wallpaper=//'`"}
    here's my xorg.conf as well if it helps. if there is anything someone can suggest adding or removing from it, especially to tweak video performance, i'm wide open for suggestions while im here
    Section "ServerLayout"
    Identifier "Xorg Configured"
    Screen 0 "Screen0" LeftOf "Screen1"
    Screen 1 "Screen1" 1600 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "PS/2 Mouse" "CorePointer"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc:unscaled"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/100dpi"
    FontPath "/usr/share/fonts/PEX"
    FontPath "/usr/share/fonts/cyrillic"
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/ttf/western"
    FontPath "/usr/share/fonts/ttf/decoratives"
    FontPath "/usr/share/fonts/truetype"
    FontPath "/usr/share/fonts/truetype/openoffice"
    FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath "/usr/share/fonts/latex-ttf-fonts"
    FontPath "/usr/share/fonts/defoma/CID"
    FontPath "/usr/share/fonts/defoma/TrueType"
    EndSection
    Section "Module"
    Load "ddc" # ddc probing of monitor
    Load "dbe"
    Load "extmod"
    Load "glx"
    Load "bitmap" # bitmap-fonts
    EndSection
    Section "ServerFlags"
    Option "AllowMouseOpenFail" "true"
    Option "Xinerama" "1"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "keyboard"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "us"
    Option "XkbVariant" ""
    EndSection
    Section "InputDevice"
    Identifier "Serial Mouse"
    Driver "mouse"
    Option "Protocol" "Microsoft"
    Option "Device" "/dev/ttyS0"
    Option "Emulate3Buttons" "true"
    Option "Emulate3Timeout" "70"
    Option "SendCoreEvents" "true"
    EndSection
    Section "InputDevice"
    Identifier "PS/2 Mouse"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "ZAxisMapping" "4 5"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "true"
    Option "Emulate3Timeout" "70"
    Option "SendCoreEvents" "true"
    EndSection
    Section "InputDevice"
    Identifier "USB Mouse"
    Driver "mouse"
    Option "Device" "/dev/input/mice"
    Option "SendCoreEvents" "true"
    Option "Protocol" "IMPS/2"
    Option "ZAxisMapping" "4 5"
    Option "Buttons" "5"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "CRT-0"
    HorizSync 30.0 - 121.0
    VertRefresh 48.0 - 160.0
    ModeLine "1600x1200" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    Option "DPMS" "true"
    EndSection
    Section "Monitor"
    Identifier "Monitor1"
    VendorName "Unknown"
    ModelName "SUN GDM-5410"
    HorizSync 30.0 - 121.0
    VertRefresh 48.0 - 160.0
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 7900 GS"
    BusID "PCI:2:0:0"
    Screen 0
    EndSection
    Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 7900 GS"
    BusID "PCI:2:0:0"
    Screen 1
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "TwinView" "0"
    Option "TwinViewXineramaInfoOrder" "CRT-0"
    Option "metamodes" "CRT-0: 1600x1200_75 +0+0"
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen1"
    Device "Device1"
    Monitor "Monitor1"
    DefaultDepth 24
    Option "TwinViewXineramaInfoOrder" "CRT-0"
    Option "TwinView" "0"
    Option "metamodes" "CRT-1: 1600x1200 +0+0"
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection

    Hi @Arboria9 ,
    I see that you are experiencing issues printing two-sided from Yosemite. I would like to help you resolve this issue.
    You have pretty much have done all the steps that I would have provided.
    Are you still able to print two-sided from the Windows computer?
    Are you missing the option to select two-sided printing in the print driver?
    Check the driver name that is installed for the printer. Make sure it shows just the printer's name.
    Click the Apple menu and then click System Preferences. Click Printers & Scanners, highlight the printer name on the left side and on the right side of the screen it should show the printer's name. (Officejet 6500)
    If the full printer name isn't listed correctly, delete it and add the printer name back in from the list. Click the - sign to delete the driver and then click the + sign to add the driver, might have to click the drop down to select the printer's name to add it in.
    How was the printer name listed?
    If you need further assistance, just let me know.
    Have a great day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • How to modify a lookup field-type to use checkbox instead of radiobutton?

    How to modify a lookup field-type to use checkbox instead of radiobutton?
    I would like to modify the behavior for the lookup field.
    Normally you get a screen where it is possible to search through a lookup. The items resulted from the search are listed as radiobutton items. Therefore you can select only one at the time to be added.
    Is it possible to have the items to be listed as checkbox instead? So that you can check multiple items and therefore be able to add multiple items at the time?
    For example:
    To add the user to 10 different groups on MS-AD.
    It is desired to have the ability to check multiple groups to be added instead only one at the time.
    My client would like to use this feature in many other situations.

    Displaying will not be a big deal but with that you have to customize the action class and its working as well.

  • Invalid security certificate for my website host-they say the problem is Apple Safari and use Firefox instead

    For the past few days, I keep getting an invalid security certificate in Safari whenever I select Edit My Site from my website homepage (http://annaporterartist.com), or whenever I select anything requiring a secure log in from my website host main page (FASO.com). I have contacted technical support at my website host (fineartstudioonline.com) and they say that this has been an intermittently recurring problem in Safari for years and they recommend that I use Firefox instead. As proof of this they emailed a link to an Apple Support discussion, but it was for Mac OS X Lion v 10.7.4 and Safari 5.1, even though I told them I am using Mac OS X Mountain Lion v 10.8.2 and Safari 6.0.2. I do not get this error message anywhere else on the web using Safari. I did try Firefox and it seems to work fine, but I prefer Safari and I want to know why Safari is not working as it should be. I am concerned that there is a real security problem with my website host and I need someone to explain why I am getting this error message, what it means, and if it is, in fact, a known problem with Safari or is my website host corrupted? Really tired of technical support playing pass the buck or pretending the problem does not exist.
    The specific error message is:
    Their response to my inquiry and my reply is shown below:

    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    From the menu bar, select
    Keychain Access ▹ Preferences ▹ Certificates
    There are three menus in the window. What is selected in each of them?

  • I would like to read a text file in which the decimal numbers are using dots instead of commas. Is there a way of converting this in labVIEW, or how can I get the program to enterpret the figures in the correct way?

    The program doest enterpret my figures from the text file in the correct way since the numbers contain dots instead of commas. Is there a way to fix this in labVIEW, or do I have to change the files before reading them in the program? Thanks beforehend!

    You must go in the labview option menu, you can select 'use the local
    separator' in the front side submenu (LV6i).
    If you use the "From Exponential/Fract/Eng" vi, you are able to select this
    opton (with a boolean) without changing the labview parameters.
    (sorry for my english)
    Lange Jerome
    FRANCE
    "Nina" a ecrit dans le message news:
    [email protected]..
    > I would like to read a text file in which the decimal numbers are
    > using dots instead of commas. Is there a way of converting this in
    > labVIEW, or how can I get the program to enterpret the figures in the
    > correct way?
    >
    > The program doest enterpret my figures from the text file in the
    > correct way since the numbers contain dots instea
    d of commas. Is there
    > a way to fix this in labVIEW, or do I have to change the files before
    > reading them in the program? Thanks beforehend!

  • Using open instead of file open causes Acrobat X11 to barf and stop working

    I get a Critical Error when I use Open instead of File Open.
    Faulting Application Path: C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe
    Problem Event Name: APPCRASH
    Application Name: Acrobat.exe
    Application Version: 11.0.9.29
    Application Timestamp: 5412b52e
    Fault Module Name: StackHash_9cd1
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception Code: c00001a5
    Exception Offset: PCH_9A_FROM_ntdll+0x0003AAAC
    OS Version: 6.3.9600.2.0.0.256.48
    Locale ID: 1033
    Additional Information 1: 9cd1
    Additional Information 2: 9cd11aece74acb27712497bb36a41cb9
    Additional Information 3: 907e
    Additional Information 4: 907e2580c2bb8a6c100db3c807719959
    Bucket ID: 14715054b1814cb4d80f9c990e44ea23 (73554368215)

    You can use the DocOpen event.

Maybe you are looking for