See the problem with the GridbagLayout

See the out put i want small button but it is going wrong.
there are two program.
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
class frame1 extends JFrame
JMenu m1;
JMenuItem m13,m14,m12;
JMenuBar mbr;
CardLayout cardLo;     
JPanel panCon,jp;
StaticReservation stp;
KeyStroke k1;     
public frame1()
     super("Counselling System");
setExtendedState(JFrame.ICONIFIED);
     Container c=getContentPane();
     cardLo=new CardLayout();
     panCon=new JPanel(cardLo);
     stp=new StaticReservation();     
     panCon.add(stp,"StaticReservation");
     mbr=new JMenuBar();
setJMenuBar(mbr);
m1=new JMenu("Office");
m1.setMnemonic(KeyEvent.VK_O);
mbr.add(m1);
m12=new JMenuItem("Static Reservation ");
     m12.setMnemonic(KeyEvent.VK_S);
     k1=KeyStroke.getKeyStroke(KeyEvent.VK_S,8);
     m12.setAccelerator(k1);
     m1.add(m12);
m14=new JMenuItem("Exit ");
     m14.setMnemonic(KeyEvent.VK_X);
     k1=KeyStroke.getKeyStroke(KeyEvent.VK_X,Event.CTRL_MASK);
     m14.setAccelerator(k1);
     m1.add(m14);
m14.addActionListener(new Myhandler(this));
m12.addActionListener(new Myhandler(this));
c.add(panCon);
public class Myhandler implements ActionListener
frame1 f1;
public Myhandler(frame1 t1)
this.f1=t1;
public void actionPerformed(ActionEvent ae)
     if(ae.getSource()==m14)
System.exit(0);
     if(ae.getSource()==m13)          
          cardLo.show(panCon,"CollegeDetailsPane");
     if(ae.getSource()==m12)          
          cardLo.show(panCon,"StaticReservation");
public class menu2
public static void main(String ax[])throws Exception
frame1 f1=new frame1();
f1.setExtendedState(JFrame.MAXIMIZED_BOTH);
f1.setVisible(true);
f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
/* double h=f1.getHeight();     
double w=f1.getWidth();     
System.out.println(" ---------- "+h);
System.out.println(" ---------- "+w); */
import javax.swing.*;
import java.awt.*;
public class StaticReservation extends JPanel
JLabel lbca,lbcb,lbcc,lbcd,lsc,lst,lwr;
JTextField tbca,tbcb,tbcc,tbcd,tsc,tst,twr;
GridBagLayout gbl;
GridBagConstraints gbc;
JPanel jpbc,jpsc,jpwr,jpbutton;
JButton b1,b2,b3;
StaticReservation()
     setLayout(new GridLayout(4,1));
gbl=new GridBagLayout();      
     gbc=new GridBagConstraints();
     jpbc=new JPanel(gbl);
     jpbc.setBorder(BorderFactory.createTitledBorder("Backword Cast"));
     jpbc.setBounds(200,200,500,500);
     gbc.insets=new Insets(1,1,1,1);
gbc.weightx=0.01;
     gbc.weighty=0.01;
//Lable's & Textfiled'sfor BC
     gbc.gridx=0;
     gbc.gridy=0;
     lbca=new JLabel(" BC - A ");
     gbl.setConstraints(lbca,gbc);
     jpbc.add(lbca);
     gbc.gridx=0;
     gbc.gridy=1;
     lbcb=new JLabel(" BC - B ");
     gbl.setConstraints(lbcb,gbc);
     jpbc.add(lbcb);
     gbc.gridx=0;
     gbc.gridy=2;
     lbcc=new JLabel(" BC - C ");
     gbl.setConstraints(lbcc,gbc);
     jpbc.add(lbcc);
     gbc.gridx=0;
     gbc.gridy=3;
     lbcd=new JLabel(" BC - D ");
     gbl.setConstraints(lbcd,gbc);
     jpbc.add(lbcd);
gbc.gridx=1;
     gbc.gridy=0;
     gbc.anchor=GridBagConstraints.WEST;
tbca=new JTextField(15);
     gbl.setConstraints(tbca,gbc);
     jpbc.add(tbca);
     gbc.gridx=1;
     gbc.gridy=1;
     gbc.anchor=GridBagConstraints.WEST;
tbcb=new JTextField(15);
     gbl.setConstraints(tbcb,gbc);
     jpbc.add(tbcb);
     gbc.gridx=1;
     gbc.gridy=2;
     gbc.anchor=GridBagConstraints.WEST;
tbcc=new JTextField(15);
     gbl.setConstraints(tbcc,gbc);
     jpbc.add(tbcc);
     gbc.gridx=1;
     gbc.gridy=3;
     gbc.anchor=GridBagConstraints.WEST;
tbcd=new JTextField(15);
     gbl.setConstraints(tbcd,gbc);
     jpbc.add(tbcd);
//Lable's & Textfiled'sfor SC
     jpsc=new JPanel(gbl);
     jpsc.setBorder(BorderFactory.createTitledBorder(" SC/ST "));
     gbc.insets=new Insets(1,1,1,1);
gbc.weightx=0.01;
     gbc.weighty=0.01;
     gbc.gridx=0;
     gbc.gridy=0;
     lsc=new JLabel(" SC ");
     gbl.setConstraints(lsc,gbc);
     jpsc.add(lsc);
     gbc.gridx=0;
     gbc.gridy=1;
     lst=new JLabel(" ST ");
     gbl.setConstraints(lst,gbc);
     jpsc.add(lst);     
gbc.gridx=1;
     gbc.gridy=0;
     gbc.anchor=GridBagConstraints.WEST;
tsc=new JTextField(15);
     gbl.setConstraints(tsc,gbc);
     jpsc.add(tsc);
     gbc.gridx=1;
     gbc.gridy=1;
     gbc.anchor=GridBagConstraints.WEST;
tst=new JTextField(15);
     gbl.setConstraints(tst,gbc);
     jpsc.add(tst);
//Lable's & Textfiled'sfor WR Or Ladies REservations
     jpwr=new JPanel(gbl);
     jpwr.setBorder(BorderFactory.createTitledBorder(" Women "));
     gbc.insets=new Insets(1,1,1,1);
gbc.weightx=0.01;
     gbc.weighty=0.01;
     gbc.gridx=0;
     gbc.gridy=0;
     lwr=new JLabel(" Women/Ladies ");
     gbl.setConstraints(lwr,gbc);
     jpwr.add(lwr);
     gbc.gridx=1;
     gbc.gridy=0;
     gbc.anchor=GridBagConstraints.WEST;
twr=new JTextField(15);
     gbl.setConstraints(twr,gbc);
     jpwr.add(tsc);
jpbutton = new JPanel(new GridLayout(1,3));
     b1=new JButton("Submit");
     b1.setBounds(10,10,25,25);
     b2=new JButton("Change");
     b3=new JButton("Cancel");
     jpbutton.add(b1);
     jpbutton.add(b2);
     jpbutton.add(b3);
// add all Panels to Main Panel
     add(jpbc);
     add(jpsc);
     add(jpwr);
     add(jpbutton);
}

depends on how you want them to appear.
here's one way to change the current 'large' buttons
JPanel p = new JPanel(new BorderLayout());//<---
jpbutton = new JPanel(new GridLayout(1,3));
b1=new JButton("Submit");
b1.setBounds(10,10,25,25);
b2=new JButton("Change");
b3=new JButton("Cancel");
jpbutton.add(b1);
jpbutton.add(b2);
jpbutton.add(b3);
p.add(jpbutton,BorderLayout.SOUTH);//<---
// add all Panels to Main Panel
add(jpbc);
add(jpsc);
add(jpwr);
//add(jpbutton);//<---
add(p);//<---

Similar Messages

  • Anyone See a Problem With Malwarebytes

    For Macs?  I have malware on my Imac without doubt - for 3 weeks now. I have done some things and have additional tasks to do, but I'd prefer to use something like this as I am extremely busy and don't have the time go throough learning curves on how to do everything or have the time to back up my drives and reinstall software and files etc. I just want to know if there's any red flags on this software. the link to it is here: http://www.antimalwaremac.com
    Here's my etresoft report:
    Hardware Information:
              iMac (27-inch, Late 2009)
              iMac - model: iMac10,1
              1 3.06 GHz Intel Core 2 Duo CPU: 2 cores
              16 GB RAM
    Video Information:
              ATI Radeon HD 4670 - VRAM: 256 MB
    System Software:
              OS X 10.9.2 (13C64) - Uptime: 0 days 2:4:52
    Disk Information:
              HGST HDS724040ALE640 disk0 : (4 TB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        disk0s2 (disk0s2) <not mounted>: 4 TB
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              OPTIARC DVD RW AD-5680H
    USB Information:
              Seagate  GoFlex Desk      2 TB
                        FreeAgentGo (disk2s1) /Volumes/FreeAgentGo: 2 TB (309.82 GB free)
              Western Digital My Book 1230 3 TB
                        disk3s1 (disk3s1) <not mounted>: 209.7 MB
                        My Book 3TB (disk3s2) /Volumes/My Book 3TB: 3 TB (2.49 TB free)
              Apple Inc. Built-in iSight
              Apple Internal Memory Card Reader
              Apple Inc. iPad
              Apple Computer, Inc. IR Receiver
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
              WD My Book 800mbit - 800mbit max
                        EFI (disk5s1) <not mounted>: 209.7 MB
                        My Book (disk5s2) /Volumes/My Book: 6 TB (97.1 GB free)
              Rocraid 2MT HDD_01 800mbit - 800mbit max
                        EFI (disk4s1) <not mounted>: 209.7 MB
                        Rocstor (disk4s2) /Volumes/Rocstor: 6 TB (2.41 GB free)
    Thunderbolt Information:
    Kernel Extensions:
              com.rim.driver.BlackBerryUSBDriverInt          (0.0.74)
              com.seagate.driver.PowSecDriverCore          (5.2.3 - SDK 10.4)
              com.seagate.driver.PowSecLeafDriver_10_5          (5.2.3 - SDK 10.5)
              com.sophos.nke.swi          (9.0.53)
              com.eltima.ElmediaPlayer.kext          (1.0)
              foo.tap          (1.0)
              foo.tun          (1.0)
              com.sophos.kext.sav          (9.0.53)
    Startup Items:
              HDDFanControlDaemon: Path: /Library/StartupItems/HDDFanControlDaemon
              ParallelsDesktopTransporter: Path: /Library/StartupItems/ParallelsDesktopTransporter
              tap: Path: /Library/StartupItems/tap
              tun: Path: /Library/StartupItems/tun
    Problem System Launch Agents:
              [System] com.paragon.NTFS.notify.plist 3rd-Party support link
    Launch Daemons:
              [System] com.adobe.fpsaud.plist 3rd-Party support link
              [System] com.adobe.SwitchBoard.plist 3rd-Party support link
              [System] com.adobe.versioncueCS3.plist 3rd-Party support link
              [System] com.bombich.ccc.plist 3rd-Party support link
              [System] com.bombich.ccc.scheduledtask.00D3E368-E7CE-4E80-B171-487DD590DD5F.plist 3rd-Party support link
              [System] com.bombich.ccc.scheduledtask.35174FA0-9D88-40CE-A665-C2E53561EF04.plist 3rd-Party support link
              [System] com.eltima.ElmediaPlayer.daemon.plist 3rd-Party support link
              [System] com.google.keystone.daemon.plist 3rd-Party support link
              [System] com.microsoft.office.licensing.helper.plist 3rd-Party support link
              [invalid] com.oracle.java.Helper-Tool.plist
              [System] com.oracle.java.JavaUpdateHelper.plist 3rd-Party support link
              [System] com.rim.BBDaemon.plist 3rd-Party support link
              [System] com.vmware.launchd.vmware.plist 3rd-Party support link
    Launch Agents:
              [System] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [System] com.adobe.AdobeCreativeCloud.plist 3rd-Party support link
              [System] com.adobe.CS4ServiceManager.plist 3rd-Party support link
              [System] com.adobe.CS5ServiceManager.plist 3rd-Party support link
              [System] com.google.keystone.agent.plist 3rd-Party support link
              [System] com.kodak.BonjourAgent.plist 3rd-Party support link
              [invalid] com.oracle.java.Java-Updater.plist
              [System] com.rim.BBLaunchAgent.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [not loaded] com.bombich.ccc-user-agent.plist 3rd-Party support link
              [not loaded] com.digitalrebellion.PreferenceManagerAutoSave.plist 3rd-Party support link
              [not loaded] com.digitalrebellion.SoftwareUpdateAutoCheck.plist 3rd-Party support link
    User Login Items:
              FreeScreenSharing
              iTunesHelper
              GrowlMenu
              GrowlHelperApp
              ConnectService
    Internet Plug-ins:
              o1dbrowserplugin: Version: 5.1.7.17873 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              Flip4Mac WMV Plugin: Version: 2.3.1.2 3rd-Party support link
              AdobeAAMDetect: Version: AdobeAAMDetect 2.0.0.0 - SDK 10.7 3rd-Party support link
              FlashPlayer-10.6: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              AdobePDFViewerNPAPI: Version: 11.0.0 - SDK 10.6 3rd-Party support link
              Silverlight: Version: 3.0.40818.0 3rd-Party support link
              Flash Player: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              iPhotoPhotocast: Version: 7.0 - SDK 10.8
              googletalkbrowserplugin: Version: 5.1.7.17873 3rd-Party support link
              npgtpo3dautoplugin: Version: 0.1.44.29 - SDK 10.5 3rd-Party support link
              AdobePDFViewer: Version: 11.0.0 - SDK 10.6 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6 3rd-Party support link
              SoShare: Version: SoShare 4.4.1 - SDK 10.7 3rd-Party support link
              JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Outdated! Update
    Safari Extensions:
              Amazon Shopping Assistant: Version: 1.1
              Ebay Shopping Assistant: Version: 1.1
              savekeep: Version: 1.0
              Searchme: Version: 1.2
              Slick Savings: Version: 1.0
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins:
              FreeScreenSharingPlugin: Version: (null) - SDK 10.9 3rd-Party support link
    3rd Party Preference Panes:
              Adobe Version Cue CS3  3rd-Party support link
              Déjà Vu  3rd-Party support link
              Flash Player  3rd-Party support link
              Flip4Mac WMV  3rd-Party support link
              Growl  3rd-Party support link
              HDD Fan Control  3rd-Party support link
              Paragon NTFS for Mac ® OS X  3rd-Party support link
              Tuxera NTFS  3rd-Party support link
    Old Applications:
              Microsoft Language Register:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        /Applications/Microsoft Office 2011/Additional Tools/Microsoft Language Register/Microsoft Language Register.app
              Solver:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Applications/Microsoft Office 2011/Office/Add-Ins/Solver.app
              Image Data Converter Ver:          Version: 4.0.01.09150 - SDK 10.5 3rd-Party support link
                        /Applications/Image Data Converter/Image Data Converter Ver.4.app
              oDesk Team:          Version: 3.4.17 - SDK 10.5 3rd-Party support link
              Microsoft Word:          Version: 14.3.8 - SDK 10.5 3rd-Party support link
              /Applications/Microsoft Office 2011
                        Microsoft PowerPoint:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Excel:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Outlook:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Document Connection:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
              /Applications/Microsoft Office 2011/Office
                        Microsoft Graph:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Database Utility:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Office Reminders:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Upload Center:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        My Day:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        SyncServicesAgent:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Open XML for Excel:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Alerts Daemon:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Database Daemon:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Chart Converter:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Clip Gallery:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
              /Applications/iWork '09
              SA Color Finesse 3 UI:          Version: 3.0.10(292) - SDK 10.5 3rd-Party support link
                        /Applications/Adobe After Effects CC/Plug-ins/Effects/Synthetic Aperture/(CF3 Support)/SA Color Finesse 3 UI.app
              Microsoft AutoUpdate:          Version: 2.3.6 - SDK 10.4 3rd-Party support link
                        /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
              SoftwareUpdateHelper:          Version: 1.2.6 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Digital Rebellion/Shared Resources/SoftwareUpdateHelper.app
              /Library/Application Support/Microsoft/MERP2.0
                        Microsoft Error Reporting:          Version: 2.2.9 - SDK 10.4 3rd-Party support link
                        Microsoft Ship Asserts:          Version: 1.1.4 - SDK 10.4 3rd-Party support link
              Epson Printer Utility 4:          Version: 9.19 - SDK 10.5 3rd-Party support link
                        /Library/Printers/EPSON/InkjetPrinter2/Utility/UT4/Epson Printer Utility 4.app
    Time Machine:
              Mobile backups: OFF
              Auto backup: NO - Auto backup turned off
              Volumes being backed up:
              Destinations:
                        FreeAgentGo [Local] (Last used)
                        Total size: 2
                        Total number of backups: 1
                        Oldest backup: 2013-09-27 17:02:54 +0000
                        Last backup: 2013-09-27 17:02:54 +0000
                        Size of backup disk: Excellent
                                  Backup size 2  > (Disk size 0 B X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   2%          WindowServer
                   2%          EtreCheck
                   1%          PluginProcess
                   0%          com.apple.WebKit.Networking
                   0%          HDDFanControlDaemon
    Top Processes by Memory:
              328 MB          PluginProcess
              164 MB          mds_stores
              131 MB          com.apple.IconServicesAgent
              131 MB          TextEdit
              115 MB          Safari
    Virtual Memory Information:
              9.13 GB          Free RAM
              4.27 GB          Active RAM
              1.56 GB          Inactive RAM
              1.05 GB          Wired RAM
              596 MB          Page-ins
              0 B          Page-outs

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. All it does is to collect information about the state of the computer. That information goes nowhere unless you choose to share it. However, you should be cautious about running any kind of program (not just a shell script) at the request of a stranger on a public message board. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them. Ask for other options.
    Here's a summary of what you need to do, if you choose to proceed: Copy a line of text from this web page into the window of another application. Wait for the script to run. It usually takes a few minutes. Then paste the results, which will have been copied automatically, back into a reply on this page. The sequence is: copy, paste, wait, paste again. Details follow.
    4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
    6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin; clear; Fb='%s\n\t(%s)\n'; Fm='\n%s\n\n%s\n'; Fr='\nRAM details\n%s\n'; Fs='\n%s: %s\n'; Fu='user %s%%, system %s%%'; AC="com.autodesk.AutoCAD  com.google.GoogleDrive"; H='^[[:space:]]*((127\.0\.0\.1|::1|fe80::1%lo0)[[:space:]]+local|(255\.){3}255[[:space:]]*broadcast)host[[:space:]]*$'; NS=networksetup; PB="/usr/libexec/PlistBuddy -c Print"; A () { [[ a -eq 0 ]]; }; M () { find -L "$d" -type f | while read f; do file -b "$f" | egrep -lq XML\|exec && echo $f; done; }; AT () { o=`file -b "$1" | egrep -v '^(A.{16}t$|cann)'`; Ps "${1##*/} format"; }; Pc () { o=`grep -v '^ *#' "$2"`; l=`wc -l <<< "$o"`; [[ l -gt 25 ]] && o=`head -n25 <<< "$o"`$'\n'"[$((l-25)) more line(s)]"; Pm "$1"; AT "$1"; }; Pm () { [[ "$o" ]] && o=`sed -E '/^ *$/d;s/^ */   /;s/[-0-9A-Fa-f]{22,}/UUID/g;s/(ochat)\.[^.]+(\..+)/\1\2/;/\/Users\/Shared\//b'$'\ns/\/Users\/[^/]+\//\/Users\/USER\//g' <<< "$o"` && printf "$Fm" "$1" "$o"; }; Pp () { o=`$PB "$2" | awk -F'= ' \/$3'/{print $2}'`; Pm "$1"; }; Ps () { o=`echo $o`; [[ ! "$o" =~ ^0?$ ]] && printf "$Fs" "$1" "$o"; }; R () { o=; [[ r -eq 0 ]]; }; SP () { system_profiler SP${1}DataType; }; id -G | grep -qw 80; a=$?; A && sudo true; r=$?; t=`date +%s`; clear; { A || echo $'No admin access\n'; A && ! R && echo $'No root access\n'; SP Software | sed -n 's/^ *//;5p;6p;8p'; h=(`SP Hardware | awk '/ Id/{print $3}; /Mem/{print $2}'`); o=$h; Ps "Model"; o=$((h[1]<4?h[1]:0)); Ps "Total RAM (GB)"; o=`SP Memory | sed '1,5d;/[my].*:/d'`; [[ "$o" =~ s:\ [^O]|x([^08]|0[^2]|8[^0]) ]] && printf "$Fr" "$o"; o=`SP Diagnostics | sed '5,6!d'`; [[ "$o" =~ Pass ]] || Pm "POST"; p=`SP Power`; o=`awk '/Cy/{print $NF}' <<< "$p"`; o=$((o>=300?o:0)); Ps "Battery cycles"; o=`sed -n '/Cond.*: [^N]/{s/^.*://p;}' <<< "$p"`; Ps "Battery condition"; for b in FireWire Thunderbolt USB; do o=`SP $b | sed -En '1d;/:$/{s/ *:$//;x;s/\n//g;s/\).*/)/p;};/^ *(V.+ [0N]|Man).+ /{s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};/Apple|Genesy|Intel|SMSC/{s/.//g;h;}'`; Pm $b; done; o=`pmset -g therm | sed 's/^.*C/C/'`; [[ "$o" =~ No\ th|pms ]] && o=; Pm "Thermal conditions"; o=`pmset -g sysload | grep -v :`; [[ "$o" =~ =\ [^GO] ]] || o=; Pm "System load advisory"; o=`nvram boot-args | awk '{$1=""; print}'`; Ps "boot-args"; a=(/ ""); A=(System User); for i in 0 1; do o=`cd ${a[$i]}L*/Lo*/Diag* || continue; for f in *.{cr,h,pa,s}*; do [[ -f "$f" ]] || continue; d=$(stat -f%Sc -t%F "$f"); [[ "$f" =~ h$ ]] && grep -lq "^Thread c" "$f" && f="$f *"; echo "$d ${f%%_2*} ${f##*.}"; done | sort | tail`; Pm "${A[$i]} diagnostics"; done; grep -lq '*$' <<< "$o" && printf $'\n\t* Code injection\n'; o=`syslog -F bsd -k Sender kernel -k Message CReq 'caug|GPU |hfs: Ru|last value [1-9]|n Cause: -|NVDA\(|pagin|proc: t|Roamed|rror|ssert|Thrott|timed? ?o|WARN' -k Message Ane 'SMC:' | tail -n25 | awk '/:/{$4=""; $5=""};1'`; Pm "Kernel messages"; o=`df -m / | awk 'NR==2 {print $4}'`; o=$((o<5120?o:0)); Ps "Free space (MiB)"; o=$(($(vm_stat | awk '/eo/{sub("\\.",""); print $2}')/256)); o=$((o>=1024?o:0)); Ps "Pageouts (MiB)"; s=( `sar -u 1 10 | sed '$!d'` ); [[ s[4] -lt 85 ]] && o=`printf "$Fu" ${s[1]} ${s[3]}` || o=; Ps "Total CPU usage" && { s=(`ps acrx -o comm,ruid,%cpu | sed '2!d'`); n=$((${#s[*]}-1)); c="${s[*]}"; o=${s[$n]}%; Ps "CPU usage by process \"${c% ${s[$((n-1))]}*}\" with UID ${s[$((n-1))]}"; }; s=(`top -R -l1 -n1 -o prt -stats command,uid,prt | sed '$!d'`); n=$((${#s[*]}-1)); s[$n]=${s[$n]%[+-]}; c="${s[*]}"; o=$((s[$n]>=25000?s[$n]:0)); Ps "Mach ports used by process \"${c% ${s[$((n-1))]}*}\" with UID ${s[$((n-1))]}"; o=`kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1`; Pm "Loaded extrinsic kernel extensions"; R && o=`sudo launchctl list | awk 'NR>1 && !/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|openld|post[fg]|x)/{print $3}'`; Pm "Extrinsic daemons"; o=`launchctl list | awk 'NR>1 && !/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'`; Pm "Extrinsic agents"; o=`for d in {/,}L*/Lau*; do M; done | egrep -v 'com\.apple\.(CSConfig|server)' | while read f; do ID=$($PB\ :Label "$f") || ID="No job label"; printf "$Fb" "$f" "$ID"; done`; Pm "launchd items"; o=`for d in /{S*/,}L*/StartupItems; do M; done`; Pm "Startup items"; sys=`pkgutil --regexp --only-files --files com.apple.pkg.* | sort | uniq | sed 's:^:/:'`; b=`sed -E '/^.+Lib.+\/Contents\/Info.plist$/!d;s/\/Info.plist$//;/Contents\/./d' <<< "$sys"`; l=`egrep '^/usr/lib/.+dylib$' <<< "$sys"`; [[ "$b" && "$l" ]] && { o=`find -L /S*/L*/{C*/Sec*A,E}* {/,}L*/{A*d,Compon,Ex,In,iTu,Keyb,Mail/B,P*P,Qu*T,Scripti,Sec,Servi,Spo}* -type d -name Contents -prune | grep -Fv "$b" | while read d; do test -f "$d/Info.plist" || continue; ID=$($PB\ :CFBundleIdentifier "$_") || ID="No bundle ID"; printf "$Fb" "${d%/Contents}" "$ID"; done`; Pm "Extrinsic loadable bundles"; o=`find /usr/lib -type f -name *.dylib | grep -Fv "$l"`; Pm "Extrinsic shared libraries"; :; } || echo $'\nReceipts missing'; o=`for e in INSERT_LIBRARIES LIBRARY_PATH; do launchctl getenv DYLD_$e; done`; Pm "Inserted dylibs"; o=`find -L {,/u*/lo*}/e*/periodic -type f -mtime -10d`; Pm "Modified periodic scripts"; o=`scutil --proxy | grep Prox`; Pm "Proxies"; o=`scutil --dns | awk '/r\[0\] /{if ($NF !~ /^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./) print $NF; exit}'`; i=`route -n get default | awk '/e:/{print $2}'`; I=`$NS -listnetworkserviceorder | sed -En '/ '$i'\)$/{x;s/^\(.+\) //p;q;};x'`; n=`$NS -getdnsservers "$I" | awk '!/^T/{printf "not "}'`; Ps "DNS (${n}from DHCP)"; o=`$NS -getinfo "$I" | awk '/k:/{if ($3 !~ "(255\.){3}0") print $3}'`; Ps "Netmask"; R && o=`sudo profiles -P | grep : | wc -l`; Ps "Profiles"; f=auto_master; [[ `md5 -q /etc/$f` =~ ^b166 ]] || Pc $f /etc/$f; for f in fstab sysctl.conf crontab launchd.conf; do Pc $f /etc/$f; done; f=/etc/hosts; Pc "hosts" <(egrep -v "$H" $f ); AT $f; Pc "User launchd" ~/.launchd*; R && Pc "Root crontab" <(sudo crontab -l); Pc "User crontab" <(crontab -l); R && o=`sudo defaults read com.apple.loginwindow LoginHook`; Pm "Login hook"; LD="$(`find /S*/*/F* -type f -name lsregister | head -n1` -dump)"; o=`for ID in $AC; do [[ "$LD" =~ $ID ]] && echo $ID; done`; Pm "Application check"; Pp "Global login items" /L*/P*/loginw* Path; Pp "User login items" L*/P*/*loginit* Name; Pp "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed -E 's/(\..*$|-[1-9])//g'; o=`find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l`; Ps "Restricted user files"; cd; o=`SP Fonts | egrep 'id: N|te: Y' | wc -l`; Ps "Font problems"; o=`find L*/{Con,Pref}* -type f ! -size 0 -name *.plist | while read f; do plutil -s "$f" >&- || echo $f; done`; Pm "Bad plists"; d=(Desktop L*/Keyc*); n=(20 7); for i in 0 1; do o=`find "${d[$i]}" -type f -maxdepth 1 | wc -l`; o=$((o<=n[$i]?0:o)); Ps "${d[$i]##*/} file count"; done; o=; [[ UID -eq 0 ]] && o=root; Ps "UID"; o=$((`date +%s`-t)); Ps "Elapsed time (s)"; } 2>/dev/null | pbcopy; exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    7. Launch the built-in Terminal 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 Terminal in the icon grid.
    Click anywhere in the Terminal window and paste (command-V). The text you pasted should vanish immediately. If it doesn't, press the return key.
    8. If you see an error message in the Terminal window such as "syntax error," enter
    exec bash
    and press return. Then paste the script again.
    9. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, press the key combination control-C or just press return three times at the password prompt. Again, the script will still run.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    10. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line
    [Process completed]
    to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report the results. No harm will be done.
    11. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    12. When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.
    Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Terms of Use of the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • Avoiding OS patch 2.4, anyone see a problem with that?

    Based on the new 'features' the release offers, I decided to hold off on upgrading my AppleTV. Other than the prompt every time i use the device, I don't see a problem here.
    I guess my main question is around subsequent upgrades. Do i have to upgrade to 2.4 to be able to go to 2.Next or 3.0 when it's out, or can I jump versions when they become available?

    The tv will update to the latest version from any previous version, indeed you are unable to do incremental updates.
    There are problems encountered by some with any upgrade, I don't consider 2.4 to have caused any more than normal and I haven't seen any problems on a vanilla system. There are some features that have been changed, some that others may not have liked, but generally speaking I'm not sure why you shouldn't upgrade unless you are aware of specific features that may no longer be available.

  • I see this problem with Aperture Library

    Well, as you know, we have an Aperture Library. In my case about 60GBs and it will be growing about 35GBs per year. This Library is made of files imported from folders in another external HD (they are the originals imported from the camera). I have a Vault and consequently another file with 60GB. Then I have photos that really are triplicated.
    I would love that Aperture import my files and not duplicate them. As iView works.
    Please, let me know if there´s another way of doing these things.
    Regards.
    Guillermo

    If you are importing your photos into the Aperture library -- making them Managed, rather than Referenced -- then you can delete the folders you imported them from.
    (If you move back and forth between Managed and Referenced, you have a number of choices of moving vs copying, duplicating or not duplicating.)
    It always feels strange to delete a lot of images. Many people seem to solve this by archiving the images on DVD. Then you can keep just the images in the Aperture library, and the vault (on separate hard disks), and feel relatively safe. I find I also keep one spare, more-or-less up-to-date copy of the whole library on yet another disk, from a well-founded superstition about hard drives.

  • CopyRights problem with "expires at the fixed time" uat mode

    Dear all
    I found a problem with rights parameter
    When I use rights parameter in uat mode or umt mode
    it can't be work with this two modes($uat and $umt)
    and I found a document in adobe jp
    the document says "only uat mode works well with expire function"
    so I change the rgihts to uat
    but it still has problem and does not work
    this is part of my ASP VBS code
    startTime=DateDiff ("s","1-Jan-1970",Date())
    endTime=DateDiff ("s","1-Jan-1970",DateAdd("n" , 1 , Now()))
    strQueryParams = oGBLink.AppendToQuery("bookid", pSku, strQueryParams)
    strQueryParams = oGBLink.AppendToQuery("rights", "$uat#"&endTime&"#"&startTime&"$", strQueryParams)
    strQueryParams = oGBLink.AppendToQuery("price", CStr(pPrice), strQueryParams)
    ....and more
    is there any problem with my code??

    I don't see a problem with your code. You might put in a print statement and make sure that strQueryParams contains what you're expecting.
    When you're testing, are you using the same book more than once? If so, ACS can get confused about which voucher to use and use an old one.
    - either use a different book each time
    - or after each test, reset Acrobat or Reader on your test download machine. Adobe has a KB article:
    http://support.adobe.com/devsup/devsup.nsf/docs/53857.htm

  • Is there a problem with the ftp install?

    I'm trying to do a reinstall and I'm running into problems.  I select my packages then chose Install Packages then get an error that Package Install Failed.
    I can only see a few errors on /dev/vc/5 but I'm getting a whole list that
    says /x11/aterm: not found in sync db
    x11/blackbox: not found in sync db
    etc
    etc
    error: unresolvable conflicts/dependencies:
    ctags: conflicts with emacs
    I've tried several mirrors and I'm getting the same thing for each.
    HELP!!!! :cry:

    OK, I guess I don't need help after all.  I can see that problems with the install exist and once I get the base packages installed I can install anything else via pacman.
    I do have a question though, is there a way to select all of the packages in a group or do I have to do them one at a time? 
    For instance, if I want everything in the X11 and kde group, can I get them with one command?
    Thanks

  • Problem with SQL Insert

    Hi
    I am using Flex to insert data through remoteobject and using
    SAVE method generated from CFC Wizard.
    My VO contains the following variables where id has a default
    value of 0 :
    public var id:Number = 0 ;
    public var date:String = "";
    public var accountno:String = "";
    public var debit:Number = 0;
    public var credit:Number = 0;
    id is set as the primary key in my database.
    I have previously used MySQL which automatically generates a
    new id if I either omitted the id value in my insert statement or
    use 0 as the default value.
    However, now I am using MS SQL Server and the insert
    generated this error:
    Unable to invoke CFC - Error Executing Database Query.
    Detail:
    [Macromedia][SQLServer JDBC Driver][SQLServer]Cannot insert
    explicit value for identity column in table 'Transactions' when
    IDENTITY_INSERT is set to OFF.
    Strange thing is that I dont see this problem with another
    sample application. I compared with that application (it has the
    same VO with default value of 0 for id) and everything looks
    similar so I can't understand why I have this error in my
    application.
    This is SQL used to create the table:
    USE [Transactions]
    SET ANSI_NULLS ON
    SET QUOTED_IDENTIFIER ON
    SET ANSI_PADDING ON
    CREATE TABLE [dbo].[Transactions](
    [id] [int] IDENTITY(1,1) NOT NULL,
    [date] [datetime] NULL,
    [accountno] [varchar](100) NULL,
    [debit] [int] NULL,
    [credit] [int] NULL,
    CONSTRAINT [PK_Transactions] PRIMARY KEY CLUSTERED
    [id] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE =
    OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON,
    ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    Has anyone encountered this problem before with insert
    statements dealing with a unique id (with MS SQL Server)?

    Change "addRecords =
    connection.prepareStatement("
    to "addRecords =
    connection.preparedStatement("
    -BIGD

  • Problems with Booting and Reliability

    Hi all I just recently purchased an AMD 64 3400 and an MSI K8T NEO mobo.  First off I have had nothing but problems.  This was an upgrade from an old Athlon 1700XP and a Gigabyte board so I expected some hiccups.  First I had some boot problems from the start.  That ended up being a PSU problem and I am now the proud owner of an Antec True Power 550.  Boot problem solved.
    Next I began experiencing stability problems.  It started out being a stutter here or there during the occasional gaming session.  It eventually got worse.  Mostly freezes no hard crashes or BSOD.  
    Well it got so bad that the computer would no longer POST reliably.  So began the long troubleshooting process.  I have had some heat issues in the past so that is where I began.  I cleaned up cables, re-routed several, and added a PCI slot fan.  This made a smidge of improvement and I thought that my problem was video card related as my GeForce4 4600ti is beginning to show its age but I was even having problems surfing the internet.
    Well after reading several post on these forums and the AMD forums I realized that my old DDR266 PC2100 RAM may be the problem.  
    When I purchased the system in spring 2002 I bought 512 megs of Samsung RAM according to the chips on the stick anyways (I admit I do not know the actual manufacturer of the stick).  Well this did not seem to be enough for games such as Star Wars Galaxies so I bought another stick of DDR266 PC2100 512 megs (again not sure of the stick maker but the chips are Infineon).  So this is where I began trouble shooting.  I swapped wo sticks for one with no luck.  Then I tried swapping the sticks and I got a POST beep (beepage good!) and the computer booted.  So I thought problem solved.  Well it would last for anywhere between 10 minutes and several hours before another freeze.
    Well today I stopped into Worst Buy and picked up a stick of Crucial PC3200.  With trepidation I plugged the stick in and no POST...nothing.  With the Samsung stick I am able to get a proper boot about 10% of the time.  
    I have seen lots of posts regarding newer faster RAM and compatibilty issues with them.  I dont see any problems with older RAM.  My question is:  Is my problem RAM related or am I barking up the wrong tree (tree...RAM stick...get it?).  Even with the newer Crucial PC3200 I am still having problems.  If anyone could assist me I would greatly appreciate it.
    Thanks in advance.

    Quote
    next put ram in slot 1 and 3 if you onlly have 2 sticks.
    try limiting ram speed to 333 see if that helps.
    try using only one stick
    disable onbaord stuff you dont need, l
    i wasnt having much luck with onboard network , that was 1st to go.
    ike parallel ports, if you have a usb printer,
    if heat is an issue try running with case cover off.
    unless your cpu cooler was not mounted well (rubed off thermal pad having trouble locking it). but i doubt that and would lead to more trouble checking , becuse you would have to remout with artic silver or something.
    Well my original RAM is only 266 so the limiting to 333 wont help that.  Using one stick is the only way that I can actually get the thing to boot at all but with limited reliability.
    I run with the cover off constantly because I am constantly fiddling with the thing.  I have taken the HSF off, cleaned it, put new paste on and replaced.  My CPU temps have never been above 43 degrees celsius.  I have replaced the stocker HSF with a Thermal Take Venus 12.
    Thanks for the reply.

  • Workstation specs -- Any problems with this system quote?

    Here are the specs I have been quoted.  I'm not terribly knowledgeable about hardware, does anyone see any problems with this system?  I have recently started shooting and editing weddings, engagements and corporate videos.  I think it may be bit more than I need, but I would much prefer that to less than I need.  Any input from the more tech savvy users would be much appreciated.
    Darren Breckles
    65539
    ASUS Sabertooth X79 ATX LGA2011 DDR3 3PCI-E16 2PCI-E SATA3 USB3.0 SLI CrossFireX Audio Motherboard [Sabertooth X79]
    72374
    Mushkin Enhanced Blackline Frostbyte 32GB 4X8GB PC3-12800 DDR3-1600 CL10 Quad Channel Memory Kit [994055]
    64540
    Noctua NH-D14 SE2011 LGA2011 Heatpipe Cooler w/ NF-P14 140mm & NF-P12 120mm PWM Fans [NH-D14 SE2011] [Reg. $89.99]
    67678
    Intel 520 Series 240GB 2.5in SSD MLC 25nm SATA3 Solid State Disk Flash Drive OEM [SSDSC2CW240A310] [Reg. $279.99]
    4729477
    8 port internal via 2X SFF-8087, LSI2208 1GB cache, 6Gb/s, RAID 0/1/10/5/50/6/60 [RS25DB080]
    1
    84358
    MSI GeForce GTX 770 OC Twin Frozr IV 1098/1150MHZ 2GB 7GHZ GDDR5 2xDVI HDMI DP PCI-E 3.0 Video Card [N770 TF 2GD5/OC] [Reg. $429.99]
    62678
    ASUS BW-12B1ST Blu-Ray Writer 12X BD-R 16X DVD+R SATA Black Retail [BW-12B1ST/BLK/G/AS][Reg. $89.98]
    Environmental Fee $0.75 Per Item
    45275
    Microsoft Windows 7 Professional Edition 64Bit DVD SP1 OEM [FQC-04649] [Reg. $153.98]
    75044
    Fractal Design Define R4 ATX Tower Case Black Pearl 2X5.25 8X3.5INT No PSU Front 2XUSB3.0 Audio [FD-CA-DEF-R4-BL] [Reg. $119.99]
    77641
    Corsair AX860 860W ATX 12V V2.31 80 Plus Platinum Modular Power Supply Active PFC 120mm Fa *IR-$10* [CP-9020044-NA] [Reg. $189.89]
    49665
    nMedia ZE-C118 3.5in Multi Function Panel Flash Card Reader W/USB2.0 eSATA SDHC2.0 Win 7 Black [ZE-C118 ] [Reg. $19.99]
    58276
    StarTech.com 3.5in Hard Drive to 5.25in Front Bay Bracket Adapter [BRACKETFDBK]
    78186
    Noctua NF-A14 FLX 140mm Ultra Quiet Cooling Fan 900-1200RPM 115.5M3/H 19.2DBA 3-PIN [NF-A14 FLX] [Reg. $22.99]
    4
    22823
    Premium PC Assembly and Testing With 1 Year Limited NCIX Warranty (PRE-CONFIG WIN. OS If Purchased)
    Environmental Fee $3.00 Per Item
    Note: Includes extra attention to cabling, lighting installation and extra burn-in period. Recommended for windowed cases. Assembly requires an additional 4-5* business days to ship once all parts are in stock. *typical lead time (currently 2-5 business days)
    1
    $3.00
         73920-1
    NCIX 3 Year On-Site Care Coverage for PC $3000.00 - $3999.99 (22823)
    89510
    Intel Core i7 4930K 6 Core 3.4GHZ (3.9GHZ Turbo) 12MB Hyperthreading LGA2011 Processor No HSF [BX80633i74930K] [Reg. $649.99]
    81958
    Western Digital RE 2TB SATA3 7200RPM 64MB Cache 3.5in Internal Hard Drive [WD2000FYYZ] [Reg. $213.57]
    Environmental Fee $0.75 Per Item
    4

    Very nice build list Darren!
    I would have selected the Samsung 840 Pro 256GB SSD over the Intel 520, and Areca's ARC-1882i over the Intel SAS controller you list, but those are preferences not essential changes.
    Regards,
    Jim

  • Problem with temporary table refresh

    Hi,
    I running a process before validation on a page to populate a temporary table when I click a button.
    On the following page I've built a shuttle on the temporary table. Not the most elegant solution, but the shuttle LOV box wouldn't process the oracle text commands in the SQL.
    I'm not getting any error, but I have an unusual problem
    It takes two passes for the data to be replaced. i.e I enter 'ABCD' in the filter and it returns data with 'ABCD'
    If I return to the page and change the filter to 'EFGH' I still get 'ABCD'. I return to the page and click the button again and I get 'EFGH' results
    I've checked the data in the temporay table and that is updating in line with the problem.
    I've looked at the debug and that seems fine (i.e I can see the changed filter value), I've tried moving the truncate to a different process, that didn't help.
    I've run it in SQL developer and it seems to work fine.
    I've included the code below, but I can't see a problem with it.
    Can anybody help?
    begin
    EXECUTE IMMEDIATE('TRUNCATE TABLE temp_cat');
    commit;
    if length(:P26_ADD_FILTER) > 0 then
    insert into temp_cat (core_cat_id, core_cat_code, core_cat_desc)
    select core_cat_id,core_cat_code,core_cat_desc from core_cat where CONTAINS (core_cat_desc, '
    <query>
    <textquery lang="ENGLISH" grammar="CONTEXT">&P26_ADD_FILTER.
    <progression>
    <seq><rewrite>transform((TOKENS, "{", "}", " "))</rewrite></seq>
    <seq><rewrite>transform((TOKENS, "{", "}", " ; "))</rewrite></seq>
    <seq><rewrite>transform((TOKENS, "{", "}", "AND"))</rewrite></seq>
    <seq><rewrite>transform((TOKENS, "{", "}", "ACCUM"))</rewrite></seq>
    </progression>
    </textquery>
    <score datatype="INTEGER" algorithm="COUNT"/>
    </query>')>0 and core_cat_id not in (select pipe_project_cat.core_cat_id from pipe_project_cat where txtpamref = :p26_pamref);
    else
    insert into temp_cat (core_cat_id, core_cat_code, core_cat_desc)
    select core_cat_id,core_cat_code,core_cat_desc from core_cat where
    core_cat_id not in (select pipe_project_cat.core_cat_id from pipe_project_cat where txtpamref = :p26_pamref);
    end if;
    end;

    Hi,
    Apex does not work well with temporary tables as you cannot guarantee which session from the pool will be used to serve each page.
    In your case, it looks like the second page is using temporary data from the wrong session.
    Have you considered using Apex Collections instead?
    Luis

  • Problem with permissions when upgrading to Yosemite...

    I have twice tried to upgrade to Yosemite with the same results each time.  Once the installation completes and it goes through the final reboot to start the system, immediately upon start-up, it shows a dialogue box that says something along the lines of, "Yosemite needs to repair your Library." I do authorize it to do a repair, but it seems nothing actually happens.
    Yet another problem is also immediately evident at startup, and that is that several of my folders are irrevocably locked..."I don't have permission."  This includes folders in my User Library, a folder on my Desktop which is vital to my work, and the Downloads folder.  If I try to go to the Get Info area to unlock it, in the Permissions area it says "Fetching", to see who has permissions, but it never stops Fetching.  And if I click on the "+" to add a user permission, it hangs and necessitates a hard restart.
    Also, when opening Safari, it can't find Safari's keychain or can't access it, and it asks me to reset to default settings.
    I'm thinking this all has to do with a bug in the Permissions, but I don't know where the bug is or how to address it.  I have gone back to Mavericks twice now, and I don't see any problems with the permissions on the Downloads file, for instance.  Also, it seems entirely random as to which files are locked and which aren't, which adds to the confusion.
    Any help would be appreciated.

    You may need to rebuild permissions on your user account. To do this,boot to your Recovery partition (holding down the Command and R keys while booting) and open Terminal from the Utilities menu. In Terminal, type:  ‘resetpassword’ (without the ’s), hit return, and select the admin user. You are not going to reset your password. Click on the icon for your Macs hard drive at the top. From the drop down below it select the user account which is having issues. At the bottom of the window, you'll see an area labeled Restore Home Directory Permissions and ACLs. Click the reset button there. The process takes a few minutes. When complete, restart.   
    Repair User Permissions

  • Datasource Configuration problem with Tomcat-4.0.3

    Hi All !
    When I trying to open connection to my DB2 database in tomcat -4.0.3,
    I have put db2java.jar in /usr/local/jakartha-tomcat-4.03/common/lib directory
    when I am trying to connect Database through my servlet getting expections
    java.lang.NullPointerException: at DataSource ds = (DataSource)envContext.lookup("jdbc/SmsDBDS");
    here is my dbconnection class
    package com.ebizon.util.jdbc;
    import java.sql.*;
    import java.util.*;
    import javax.naming.*;
    import javax.sql.*;
    public class DBUtil {
    /* Ebizon DB Connection for Tomcat */
    public static Connection getEbizDBConnection() throws NamingException, SQLException {
    Connection conn = null;
    try {
    InitialContext initCtx = new InitialContext();
    Context envContext = (Context)initContext.lookup("java:/comp/env");
    DataSource ds = (DataSource)envContext.lookup("jdbc/SmsDBDS");
    conn = ds.getConnection();
    } catch (NamingException ne) {
    throw ne;
    } catch (SQLException se) {
    throw se;
    return conn;
    And my resource definition in server.xml (/usr/local/jakartha-tomcat-4.0.3/conf/server.xml)
    <Context path="/DBTest" docBase="DBTest"
    debug="5" reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_DBTest_log." suffix=".txt"
    timestamp="true"/>
    <Resource name="jdbc/SmsDBDS"
    auth="Container"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/SmsDBDS">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>100</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>30</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>10000</value>
    </parameter>
    <!-- DB2 dB username and password for dB connections -->
    <parameter>
    <name>username</name>
    <value>smsdb</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>smsdb</value>
    </parameter>
    <!-- Class name for mm.mysql JDBC driver -->
    <parameter>
    <name>driverClassName</name>
    <value>COM.ibm.db2.jdbc.app.DB2Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:db2:smsdb</value>
    </parameter>
    </ResourceParams>
    </Context>
    this is my Web Application descriptor /WEB-INF/web.xml
    <resource-ref>
    <description>
    Resource reference to a factory for java.sql.Connection
    instances that may be used for talking to a particular
    database that is configured in the server.xml file.
    </description>
    <res-ref-name>
    jdbc/EmployeDB
    </res-ref-name>
    <res-type>
    javax.sql.DataSource
    </res-type>
    <res-auth>
    Container
    </res-auth>
    </resource-ref>
    Please look at once above , Do i missing any thing?
    Anyhelp is greatly appreciate
    Many thanks in advance
    With Regards
    Madhu Reddy

    I don't see any problem with your files, so unfortunately I can't help. Since this forum is about the J2EE SDK, people may not have that much experience with standalone Tomcat. You may want to try the Tomcat user mailing list for a question about Tomcat: http://jakarta.apache.org/site/mail2.html

  • A Problem With Sorting via Applescript

    Hello everyone. I have always lurked these forums and learnt many things along the way, but this is my first question, and I hope that someone can help me out. I apologise for the huge post.
    I have created a spreadsheet in Numbers that I plan to use for a soccer tournament. There are 8 Groups of 4 teams in the competition, so I have set each Group up on its own sheet in order to record the results of the games. Group 1 is on Sheet 1, Group 2 is on Sheet 2 etc. These results are then fed into a second table on the each page in order to create a competition ladder for each group. So far so good, works beautifully. See image:
    My next step is sorting these tables so that they form a proper "results table" with the best team on top. My wish is to sort the results table in this order:
    Points
    Diff
    F
    Although not very experienced with Applescript, I have written a script to sort all of the 8 sheets so that I don't have to do them one at a time. Unfortunately I find that every second sheet does not sort correctly, even though I am using the same instructions for each seet in my script.
    See here, sheet two:
    Sheet 3 sorts correctly but not sheet 4, sheet 5 is good but sheet 6 bad etc...
    This is my script:
    tell application "Numbers"
              tell table "Ladder1" of sheet "Group1" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder1" of sheet "Group1" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder1" of sheet "Group1" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder2" of sheet "Group2" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder2" of sheet "Group2" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder2" of sheet "Group2" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder3" of sheet "Group3" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder3" of sheet "Group3" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder3" of sheet "Group3" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder4" of sheet "Group4" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder4" of sheet "Group4" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder4" of sheet "Group4" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder5" of sheet "Group5" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder5" of sheet "Group5" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder5" of sheet "Group5" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder6" of sheet "Group6" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder6" of sheet "Group6" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder6" of sheet "Group6" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder7" of sheet "Group7" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder7" of sheet "Group7" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder7" of sheet "Group7" of document "Manu"
      sort by column "g" direction descending
              end tell
              tell table "Ladder8" of sheet "Group8" of document "Manu"
      sort by column "k" direction descending
              end tell
              tell table "Ladder8" of sheet "Group8" of document "Manu"
      sort by column "i" direction descending
              end tell
              tell table "Ladder8" of sheet "Group8" of document "Manu"
      sort by column "g" direction descending
              end tell
    end tell
    Can anybody see any obvious errors with the script? Any info would be greatly appreciated. Thanks!

    First I would look at some items to simplify the script:
    I did NOT run this.
    tell application "Numbers"
              set LadderNumber to 1
              repeat 8 times
           set theLadder to "Ladder" & LadderNumber
           set theGroup to "Group" & LadderNumber
           tell table theLadder of sheet theGroup of document "Manu"
                sort by column "k" direction descending
                sort by column "i" direction descending
                sort by column "g" direction descending
                             end tell
                             set LadderNumber to (LadderNumber + 1)
              end repeat
    end tell
    I don't see a problem with the script.  I suggest adding a dummy table to each sheet and confirming you can set a value in the dummy table from the script (maybe after manually setting the value to some default value).  you can also add print dialogs at each step to see what's happening... like:
    set aValue to <what ever>
    display dialog "The value is: " & aValue
    just some thoughts

  • Am I likely to recieve problems with these stats?

    Hi
    Just recently ordered BT vision and even tho its not due to arrive for a few weeks, BT have kindly enabled the Assured Rate/QOS already ;-)
    Now the wife is a bit pessemestic as to whether it will work on our line as she has heard horror stories from our neighbours.. THese are my just posted stats from the BT speed tester. Can anyone see any problem with these?
    FAQ
    Test1 comprises of two tests
    1. Best Effort Test: -provides background information.
    Download  Speed
    3757 Kbps
    0 Kbps
    7150 Kbps
    Max Achievable Speed
     Download speedachieved during the test was - 3757 Kbps
     For your connection, the acceptable range of speeds is 600-7150 Kbps.
     Additional Information:
     Your DSL Connection Rate :5312 Kbps(DOWN-STREAM), 448 Kbps(UP-STREAM)
     IP Profile for your line is - 4000 Kbps
    2. Assured Rate Test: -provides background information.
    Download Speed
    666 Kbps
    0 Kbps
    600 Kbps
    Max Achievable Speed
     Download speedachieved during the test was - 666 Kbps
     For your connection, the acceptable range of speeds is 576-600 Kbps.
     Additional Information:
     Assured Rate IP profile on your line is - 600 Kbps
    THis test was done over a BT Business Hub and if these results are decent, im reluctant to change it for the BT Home hub that i will be getting for free....

    looks pretty perfect you should have no problems at all
    Life | 1967 Plus Radio | 1000 Classical Hits | Kafka's World
    Someone Solved Your Question?
    Please let other members know by clicking on ’Mark as Accepted Solution’
    Helpful Post?
    If a post has been helpful, say thanks by clicking the ratings star.

  • Media Browser Problem with iWok'05

    I have been encounting the same problem since yesterday: if I open the Media Browser in either Keynote or Pages, the application starts to in-respond. What do I gonna do? I tried reinstalling it, but it still doesn't work.
    Thank you very much!

    I've encountered this problem with iWork also. I don't know of a workaround with iWork '05, but I don't see this problem with iWork '06.

  • Problems with filter exception using Network IP range

    We are using a spam filtering service for out incoming email. As such, all
    our email is directed to our SMTP server from their IP address range. We
    employ a dual firewal set up. We have a Netscreen firewall connected to the
    Internet and the Border Manager 3.8 server sits between the Netscreen and
    our internal network. On the BM server I have set up a generic proxy with a
    proxy port of 1025 to proxy the incoming email to our internal mail server.
    The Netscreen is set up to forward all SMTP (port 25) traffic to the
    BorderManager server on port 1025. Using FiltCfg I also set up a packet
    filter exception to allow traffice from the service providers network
    (Network = 104.56.144.0, Mask = 255.255.248.0) to port 1025. With this
    setup most email is received just fine. However I was getting reports of
    bounced and delayed email. Working with our service provider it was
    detemined that randomly some connections were failing. I used PktScan to
    collect packet trace infomation from our BM server. On a regular basis
    there are groups of SYN packets from the service providers email servers
    which are not receiving a response from the BM server. In some cases the BM
    server does eventuall respond with a SYN/ACK. There are also times when the
    BM server responds immediately after the first SYN. All the incoming
    connections from the service provider are currently comming in from two IP
    addresses, 104.56.144.247 and 104.56.145.247. The BM server is showing the
    same problem for both IP addresses, sometimes it responds immediatley to the
    SYN, sometimes it takes a few SYN packets before it responds, and sometimes
    the BM server never responds to the connection attempt. On a whim I added
    filter exceptions which specifed the two host IP addresses specifically
    (other than that the rules are identical to the one using the Network
    specification). After doing this the BM server is now responing immediately
    to all the incoming SMTP connection attempts from the service provider. Why
    would I be seeing this problem with the filter exception defined with a
    Network specification but not with Host specifications? Is there anything I
    can do to fix this?
    Thank you for any help provided,
    Brad Johnson

    Yes. I created 8 separate 255.255.255.0 exceptions. In viewing the packet
    trace data for the last couple of days it appears this resoloved the
    problem.
    Thanks
    Brad Johnson
    "Craig Johnson" <[email protected]> wrote in message
    news:[email protected]..
    > In article <XCo8l.13813$[email protected]>, Brad Johnson
    > wrote:
    >> Both servers are running NW 6.5 sp 6. After this problem started I
    >> applied
    >> BM38sp5_IR1, TCP681K, and wsock6o. This had no affect on the issue.
    >>
    >> If I create individual exceptions for the IP addresses I am currently
    >> receiving mail from, rather than using the range of potential addresses,
    >> the
    >> problem goes away.
    >>
    > Well, it sounds definitive enough, but I think if it were a generic issue
    > to
    > the patch level I would have heard about it from my clients who use
    > Postini
    > mail filtering service. All of the Postini-related servers have a network
    > address as a source in the filter exceptions for smtp.
    >
    > Instead of using a 255.255.248.0 mask, does it work if you set up 8
    > different
    > 255.255.255.0 exceptions?
    >
    >
    > Craig Johnson
    > Novell Support Connection SysOp
    > *** For a current patch list, tips, handy files and books on
    > BorderManager, go to http://www.craigjconsulting.com ***
    >
    >

Maybe you are looking for