Please help with merging code
With the help of this forum I have a program that decrypts a password that was previously encrypted. I'm trying to encorporate this decrypt code into a program of mine and having a problem with an undeclared Exception. Can someone help?
Here's the short decrypt program that works:
import java.io.*;
import java.security.*;
import javax.crypto.*;
import sun.misc.*;
public class DecryptPassword
public static void main(String args[]) throws Exception
if(args.length<1)
System.out.println("Usage : DecryptPassword text");
return;
Security.addProvider(new com.sun.crypto.provider.SunJCE());
Key key;
try
ObjectInputStream in=new ObjectInputStream(new FileInputStream("des.key"));
key=(Key)in.readObject();
in.close();
} catch(FileNotFoundException fnfe)
KeyGenerator generator= KeyGenerator.getInstance("DES");
generator.init(new SecureRandom() );
key=generator.generateKey();
ObjectOutputStream out=new ObjectOutputStream(new FileOutputStream("des.key"));
out.writeObject(key);
out.close();
Cipher cipher=Cipher.getInstance("DES/ECB/PKCS5Padding");
cipher.init(Cipher.DECRYPT_MODE,key);
BASE64Decoder decoder = new BASE64Decoder();
byte[] raw = decoder.decodeBuffer(args[0]);
byte[] stringBytes = cipher.doFinal(raw);
String result = new String(stringBytes,"UTF8");
System.out.println(result);
}Now here's the code snippet. I call this function from another part of the program with DecryptPassword();
public void DecryptPassword()
Security.addProvider(new com.sun.crypto.provider.SunJCE());
Key key;
try
ObjectInputStream in=new ObjectInputStream(new FileInputStream("des.key"));
key=(Key)in.readObject();
in.close();
} catch(FileNotFoundException fnfe)
KeyGenerator generator= KeyGenerator.getInstance("DES");
generator.init(new SecureRandom() );
key=generator.generateKey();
ObjectOutputStream out=new ObjectOutputStream(new FileOutputStream("des.key"));
out.writeObject(key);
out.close();
Cipher cipher=Cipher.getInstance("DES/ECB/PKCS5Padding");
cipher.init(Cipher.DECRYPT_MODE,key);
BASE64Decoder decoder = new BASE64Decoder();
byte[] raw = decoder.decodeBuffer(EncryptedRemedyPassword);
byte[] stringBytes = cipher.doFinal(raw);
String result = new String(stringBytes,"UTF8");
EncryptedRemedyPassword = result;
//System.out.println(result);
}Problem is, what do I do with the "throws Exception" that is a part of the Main program in the first set of code? I assume that's the problem.
Thanks.
James
Please don't write the name of your method with an uppercase.
There is two ways to solve your problem :
1) you declare that your method throws an Exception like this :
public void decryptPassword() throws Exceptionbut, for each call of this method you will have to put it in a try{} catch(Exception e) {} clause.
2) you put all the code of your method in a try clause like this :
public void decryptPassword() {
try {
// all the code
catch(Exception e) {
System.out.println(e);
}I hope this helps,
Denis
Similar Messages
-
PLEASE Help with HTML code for email background image...
Hi there!
i have a background image that I want to pop into an html email widget for the email's background... here is the web link I created in Photoshop: file:///C:/Users/Rachel/Desktop/iMuse%20Clients/LeadMachine360/Email%20Signatures/tileabl e-metal-textures-2.html
If anyone could please help me out that would be AWESOME! I've attached pics of the background & I'm using Infusionsoft email builder which allows for HTML widgets. I have a code that I use for my landing pages & webforms which works, tried that but no dice!
Any help would be much appreciated - I'm an html newbie!
Here is the code that I use for landing pages & works great, tried it for the email & it was a fail:
<style>
#mainContent .background, {
background: url('file:///C:/Users/Rachel/Desktop/iMuse%20Clients/LeadMachine360/Email%20Signatures/ti leable-metal-textures-2.html') no-repeat center center fixed;
background-size: cover;
</style>
<script src="file:///C:/Users/Rachel/Desktop/iMuse%20Clients/LeadMachine360/Email%20Signatures/ti leable-metal-textures-2.html">
</script>
<script>
jQuery(document).ready(
function(){
jQuery(' table.bodyContainer').removeAttr('bgcolor');
</script>
thanks in advance!
MuseNot sure what you expect. Your URL is absolute and pointing to a local file resource. It's not a proper relative HTML link. Beyond that it's toatlly unclear how you actually plan to load your image and where they are hosted, so nobody can tell you anything. Either way, there is an obviously painful lack of understanding of even the most basic web techniques, so the best advise anyone would give you is to spend some time with a web search and actualyl learn some of that stuff...
Mylenium -
Please help with this code....
I create a button with ActionListner and a writeCd method. Now I want everytime i push the button, it will read the writeCd method. I dont' know how to make it work. Please help me out as soon as possible. Thanks a lot. Below are the codes of the button and writeCd method.
class findCD implements ActionListener
public void actionPerformed(ActionEvent event)
//what do I need to put here to make the button work
//with method writeCD() below
public void writeCd() throws Exception
String outputFileName;
PrintWriter outputFile;
outputFileName = "D:\\cdoutput.txt";
outputFile = new PrintWriter(new FileWriter(outputFileName,true));
int loopTest;
do
String numStr = JOptionPane.showInputDialog("Please enter Index number");
int number = Integer.parseInt(numStr);
cC.setIndexNumber(number);
numStr = JOptionPane.showInputDialog("Please enter cd name");
number = Integer.parseInt(numStr);
cC.setCdName(number);
String message = cC.toString() +
"\nYour input is: ";
JOptionPane.showMessageDialog(null, message);
outputFile.println(numStr + "");
loopTest = JOptionPane.showConfirmDialog(null,"Do another?","",0,1);
while (loopTest == 0);
outputFile.close();class findCD implements ActionListener
public void actionPerformed(ActionEvent event)
try
writeCd();
} catch(Exception e){
e.printStackTrace();
public void writeCd() throws Exception
String outputFileName;
PrintWriter outputFile;
outputFileName = "D:\\cdoutput.txt";
outputFile = new PrintWriter(new
(new FileWriter(outputFileName,true));
int loopTest;
do
String numStr =
umStr = JOptionPane.showInputDialog("Please enter
Index number");
int number = Integer.parseInt(numStr);
cC.setIndexNumber(number);
numStr = JOptionPane.showInputDialog("Please
"Please enter cd name");
number = Integer.parseInt(numStr);
cC.setCdName(number);
String message = cC.toString() +
"\nYour input is: ";
JOptionPane.showMessageDialog(null, message);
outputFile.println(numStr + "");
loopTest =
pTest = JOptionPane.showConfirmDialog(null,"Do
another?","",0,1);
while (loopTest == 0);
outputFile.close();
}That should work. This also assumes that the method writeCd is in the class findCD. -
Please help with C code to synchronize counter output to analog input
Hi All,
I am using NI DAQ USB-6353 with text-based C code to control it. I would like to send a continuous pulse train from the DAQ to pulse a power supply, which then activates an electron beam producing current to be read by the analog input port of the same DAQ. I would like to keep only the analog samples during the pulse peak and samples of a couple pulse widths right after. I am successfully to generate a pulse train using the sampled clock from a counter output channel, but fail to use the same clock to synchronize the pulse train with the analog input. DAQmxReadAnalogF64 is not called by the static function EveryNCallback set for the analog input task. Am I doing something wrong with the following codes? It would be great if it turns out only I am using the wrong sampled clock name of the counter ("dev1/PFI8") for the analog input. Or is something more fundamental that a counter cannot be sync. with an analog input?
Would someone be able to send me a link to an example in C or C++ or visual basic showing how to synchronize a buffered sample clocked digital pulse train from a counter output channel to an analog input? To simplify the post, the below codes do not include the static functions EveryNCallback and DoneCallBack, but I can send them if needed.
Many thanks in advance for your help,
Thuc Bui
//setting operation parameters
double initDelay = 0.0, freq = 10;
double dutyCycle = 0.0001; //thus pulse width is 10 microsec
unsigned highTicks = 4; //per period
unsigned numSamplesPerPeriod = highTicks / dutyCycle; //40000 samples/period
unsigned lowTicks = numSamplesPerPeriod - highTicks; //per period
unsigned sampleRate = 2*numSamplesPerPeriod*freq; //800000 samples/s
//create counter
TaskHandle counterTask;
int errCode = DAQmxCreateTask("", & counterTask);
errCode = DAQmxCreateCOPulseChanFreq(counterTask, "dev1/ctr0", "",
DAQmx_Val_Hz, DAQmx_Val_Low,
initDelay, freq, dutyCycle);
errCode = DAQmxCfgSampClkTiming(counterTask, "dev1/PFI8", sampleRate, DAQmx_Val_Rising,
DAQmx_Val_ContSamp, numSamplesPerPeriod);
//create analog input
TaskHandle aiTask;
double minVolt = 0.0, maxVolt = 1.0;
errCode = DAQmxCreateAIVoltageChan(aiTask, "dev1/ai0", "", DAQmx_Val_Diff,
minVolt, maxVolt, DAQmx_Val_Volts, "");
unsigned bufferSize = 10* numSamplesPerPeriod;
errCode = DAQmxSetBufInputBufSize(aiTask, bufferSize);
errCode = DAQmxCfgSampClkTiming(aiTask, "dev1/PFI8", sampleRate, DAQmx_Val_Rising, DAQmx_Val_ContSamp, numSamplesPerPeriod);
errCode = DAQmxRegisterEveryNSamplesEvent(aiTask, DAQmx_Val_Acquired_Into_Buffer,
numSamplesPerPeriod, 0, EveryNCallback, 0);
errCode = DAQmxRegisterDoneEvent(aiTask, 0, DoneCallBack, 0)
//start aiTask first
errCode = DAQmxStartTask(aiTask);
//then counterTask
errCode = DAQmxStartTask(counterTask);Hi Xavier,
Thank you very much for getting back to me. I really appreciate it. I followed your advice with the option 2 and simplified my code by using one of the NI C example templates to generate the below codes (also attached). I was able to see the pulses generated with an oscilloscope, and on the same oscilloscope I could see the ouput pulses of the electron beam probe. Unfortunately, the below code via DAQmxReadAnalogF64 reports of no data read from the probe and finally times out. Below is the error message given by this function. I did check the connection of the analog input wires to make sure they were connected to pin 1 (A0+) and 2 (A0-) because I was using the terminal configuration DAQmx_Val_Diff. Do you see any obvious errors I have made in my codes?
Thanks a lot for your help,
Thuc Bui
Task started, waiting for trigger...
Acquired 0 analog samples DAQmx Error: Some or all of the samples requested have not yet been acquired.
To wait for the samples to become available use a longer read timeout or read later in your program. To make the samples available sooner, increase the sample rate. If your task uses a start trigger, make sure that your start trigger is configured correctly. It is also possible that you configured the task for external timing, and no clock was supplied. If this is the case, supply an external clock.
Property: DAQmx_Read_RelativeTo
Corresponding Value: DAQmx_Val_CurrReadPos
Property: DAQmx_Read_Offset
Corresponding Value: 0
Task Name: _unnamedTask<1>
Status Code: -200284
End of program, press Enter key to quit
********************** C Code **************************************************
#include <stdio.h>
#include "NIDAQmx.h"
#include <math.h>
#define DAQmxErrChk(functionCall) { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }
int main(void) {
int32 error = 0;
char errBuff[2048]={'\0'};
TaskHandle taskHandleDig=0;
TaskHandle taskHandleAna=0;
double timeout=10;
double minVol = -1.0, maxVol = 1.0;
double initDelay = 0.0;
double freq = 10.0;
double pulseWidth = 1.0e-5; //10us
double dutyCycle = pulseWidth * freq;
unsigned hiTicks = 4;
double sampleRate = hiTicks/pulseWidth; //samples/s
unsigned lowTicks = ceil(sampleRate/freq) - hiTicks;
unsigned nSpPeriod = hiTicks + lowTicks;
unsigned numPulses = 1;
unsigned nSpCh = numPulses*nSpPeriod;
double sampleRate2 = ceil(2.0*sampleRate);
unsigned sampleMode = DAQmx_Val_FiniteSamps;
/*********************************************/ /*/ DAQmx Configure Code /*********************************************/
DAQmxErrChk(DAQmxCreateTask("", &taskHandleDig)); DAQmxErrChk(DAQmxCreateTask("", &taskHandleAna));
DAQmxErrChk(DAQmxCreateAIVoltageChan(taskHandleAna, "Dev2/ai0", "", DAQmx_Val_Diff, minVol, maxVol, DAQmx_Val_Volts, ""));
DAQmxErrChk(DAQmxCfgSampClkTiming(taskHandleAna, "/Dev2/Ctr0InternalOutput", sampleRate2, DAQmx_Val_Rising, sampleMode, nSpCh));
DAQmxErrChk(DAQmxCreateCOPulseChanFreq(taskHandleDig, "Dev2/ctr0", "", DAQmx_Val_Hz, DAQmx_Val_Low, initDelay, freq, dutyCycle));
DAQmxErrChk(DAQmxCfgSampClkTiming(taskHandleDig, "/Dev2/PFI12", sampleRate2, DAQmx_Val_Rising, sampleMode, nSpCh));
unsigned bufferSize = nSpCh;
DAQmxErrChk(DAQmxSetBufInputBufSize(taskHandleAna, bufferSize));
DAQmxErrChk(DAQmxSetBufOutputBufSize(taskHandleDig, bufferSize));
/*********************************************/ /*/ DAQmx Write Code /*********************************************/
DAQmxErrChk(DAQmxWriteCtrTicksScalar(taskHandleDig, 0, timeout, hiTicks, lowTicks, NULL));
/*********************************************/ /*/ DAQmx Start Code /*********************************************/
DAQmxErrChk(DAQmxStartTask(taskHandleAna)); DAQmxErrChk(DAQmxStartTask(taskHandleDig));
printf("Task started, waiting for trigger...\n");
/*********************************************/ /*/ DAQmx Read Code /*********************************************/
double* dataAna = new double[nSpCh];
int32 numReadAna = 0;
int errCode = DAQmxReadAnalogF64(taskHandleAna, -1, timeout, DAQmx_Val_GroupByChannel, dataAna, nSpCh, &numReadAna, NULL);
printf("Acquired %d analog samples\n",numReadAna);
if (numReadAna) {
unsigned nPts = (numReadAna < hiTicks)? numReadAna : hiTicks;
for (unsigned n = 0; n < nPts; ++n) {
printf("%6.3f ", dataAna[n]);
printf("\n");
delete [] dataAna;
DAQmxErrChk(errCode);
Error:
if( DAQmxFailed(error) ) DAQmxGetExtendedErrorInfo(errBuff,2048);
if( taskHandleDig!=0 && taskHandleAna!=0 ) {
/*********************************************/ /*/ DAQmx Stop Code /*********************************************/
DAQmxStopTask(taskHandleDig);
DAQmxClearTask(taskHandleDig);
DAQmxStopTask(taskHandleAna);
DAQmxClearTask(taskHandleAna);
if( DAQmxFailed(error) ) printf("DAQmx Error: %s\n",errBuff);
printf("End of program, press Enter key to quit\n");
getchar();
return 0;
Attachments:
Correlated DIO AI_Sample_Clock Dig Start.c 6 KB -
Interval Since Last Panic Report: 6395213 sec
Panics Since Last Report: 1
Anonymous UUID: 8AEBAB22-1943-48B3-8D30-E4D07CCDEEA0
Tue Mar 18 13:30:13 2014
Machine-check capabilities (cpu 3) 0x0000000000000006:
family: 6 model: 15 stepping: 6 microcode: 198
Intel(R) Xeon(R) CPU 5160 @ 3.00GHz
6 error-reporting banks
Machine-check status 0x0000000000000005:
restart IP valid
machine-check in progress
MCA error-reporting registers:
IA32_MC0_STATUS(0x401): 0x1000000020000000 invalid
IA32_MC1_STATUS(0x405): 0x0000000000000000 invalid
IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
IA32_MC3_STATUS(0x40d): 0x0020000000000000 invalid
IA32_MC4_STATUS(0x411): 0x0000000000000011 invalid
IA32_MC5_STATUS(0x415): 0xb200001080200e0f valid
MCA error code: 0x0e0f
Model specific error code: 0x8020
Other information: 0x00000010
Status bits:
Processor context corrupt
Error enabled
Uncorrected error
panic(cpu 2 caller 0x2cf3cc): "Machine Check at 0x002d3432, trapno:0x12, err:0x0," "registers:\n" "CR0: 0x80010033, CR2: 0x103dd000, CR3: 0x00100000, CR4: 0x00000660\n" "EAX: 0x00000000, EBX: 0x000000be, ECX: 0x6241b000, EDX: 0x00000001\n" "ESP: 0x6f853c58, EBP: 0x6f853c58, ESI: 0x00000000, EDI: 0x827a6b3c\n" "EFL: 0x00000016, EIP: 0x002d3432\n"@/SourceCache/xnu/xnu-1699.32.7/osfmk/i386/trap_native.c:258
Backtrace (CPU 2), Frame : Return Address (4 potential args on stack)
0x6853cf38 : 0x2203de (0x6b08cc 0x6853cf58 0x229fb0 0x0)
0x6853cf68 : 0x2cf3cc (0x6bde94 0x6bdfc8 0x2d3432 0x12)
0x6853d0d8 : 0x2cf409 (0x6853d110 0xde 0x6bdfc8 0x1)
0x6853d0f8 : 0x2e6182 (0x6853d110 0x0 0x0 0x0)
0x6f853c58 : 0x2d381e (0x20 0x7fffffff 0x6f853c88 0x29701be)
0x6f853c68 : 0x29701be (0x684b6100 0xffffffff 0x6f853cb8 0x9d8e800)
0x6f853c88 : 0x297028b (0x684b6100 0xffffffff 0x7fffffff 0x827aa38d)
0x6f853cb8 : 0x296864f (0x684b6100 0x827aa38d 0xbe 0xffffffff)
0x6f853d58 : 0x29699fe (0x827aa38d 0xbe 0x3 0x0)
0x6f853de8 : 0x2d0cde (0xffffffff 0x7fffffff 0x6f853e08 0x2cd4ca)
0x6f853e08 : 0x22d3e5 (0x684c5000 0x827a6711 0xbe 0x684c5de0)
0x6f853e48 : 0x22e1c0 (0xd58c7f0 0x684c5000 0x0 0x0)
0x6f853e98 : 0x22f6c2 (0xd58c80c 0x2 0x12 0xd7c0e00)
0x6f853ef8 : 0x22f821 (0x2150f0 0x0 0x0 0xd58c7f0)
0x6f853f18 : 0x21505d (0x2150f0 0x7000006 0xc00 0xffffffff)
0x6f853f48 : 0x21b385 (0xede8f28 0x7000006 0xc00 0xffffffff)
0x6f853f98 : 0x2b7bb7 (0xd4c9954 0x7fff 0xd4c9984 0x8)
0x6f853fc8 : 0x2e60c7 (0xd4c9950 0x0 0x10 0xd4c9950)
Kernel Extensions in backtrace:
com.apple.driver.AppleIntelCPUPowerManagement(195.0)[D1550426-D346-4805-A777-06 63C69080DA]@0x2966000->0x298ffff
BSD process name corresponding to current thread: iTunes
Mac OS version:
11G63
Kernel version:
Darwin Kernel Version 11.4.2: Thu Aug 23 16:26:45 PDT 2012; root:xnu-1699.32.7~1/RELEASE_I386
Kernel UUID: 859B45FB-14BB-35ED-B823-08393C63E13B
System model name: MacPro1,1 (Mac-F4208DC8)
System uptime in nanoseconds: 818233088876
last loaded kext at 91751914186: com.apple.driver.AppleHWSensor 1.9.5d0 (addr 0x2990000, size 28672)
last unloaded kext at 226546974280: com.apple.driver.CSRHIDTransitionDriver 4.0.8f17 (addr 0x21cd000, size 12288)
loaded kexts:
com.parentalctrl.kext.filter 3.8.1
com.logmein.driver.LogMeInSoundDriver 1.0.3
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AppleMCCSControl 1.0.33
com.apple.driver.AppleHDA 2.2.5a5
com.apple.driver.AudioAUUC 1.59
com.apple.GeForce7xxx 7.0.4
com.apple.driver.AppleUSBDisplays 323.3
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.iokit.IOBluetoothSerialManager 4.0.8f17
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleMCEDriver 1.1.9
com.apple.driver.Apple_iSight 4.0.1
com.apple.driver.AudioIPCDriver 1.2.3
com.apple.driver.ApplePolicyControl 3.1.33
com.apple.driver.ACPI_SMC_PlatformPlugin 5.0.0d8
com.apple.driver.AppleLPC 1.6.0
com.apple.filesystems.autofs 3.0
com.apple.driver.CSRUSBBluetoothHCIController 4.0.8f17
com.apple.iokit.SCSITaskUserClient 3.2.1
com.apple.driver.AppleRAID 4.0.6
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.1.0
com.apple.driver.AppleFWOHCI 4.9.0
com.apple.driver.AppleAHCIPort 2.3.1
com.apple.driver.AppleIntelPIIXATA 2.5.1
com.apple.driver.AppleIntel8254XEthernet 2.1.3b1
com.apple.driver.AppleEFINVRAM 1.6.1
com.apple.driver.AppleUSBHub 5.1.0
com.apple.driver.AppleUSBUHCI 5.1.0
com.apple.driver.AppleUSBEHCI 5.1.0
com.apple.driver.AppleACPIButtons 1.5
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleHPET 1.7
com.apple.driver.AppleSMBIOS 1.9
com.apple.driver.AppleACPIEC 1.5
com.apple.driver.AppleAPIC 1.6
com.apple.driver.AppleIntelCPUPowerManagementClient 195.0.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1.4
com.apple.security.TMSafetyNet 8
com.apple.driver.AppleIntelCPUPowerManagement 195.0.0
com.apple.driver.AppleBluetoothHIDMouse 175.9
com.apple.driver.AppleHIDMouse 175.9
com.apple.driver.IOBluetoothHIDDriver 4.0.8f17
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.driver.DspFuncLib 2.2.5a5
com.apple.nvidia.nv40hal.G7xxx 7.0.4
com.apple.NVDAResman.G7xxx 7.0.4
com.apple.iokit.IOFireWireIP 2.2.5
com.apple.iokit.IOSurface 80.0.2
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.driver.AppleHDAController 2.2.5a5
com.apple.iokit.IOHDAFamily 2.2.5a5
com.apple.iokit.IOAudioFamily 1.8.6fc18
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleGraphicsControl 3.1.33
com.apple.iokit.IONDRVSupport 2.3.4
com.apple.iokit.IOGraphicsFamily 2.3.4
com.apple.driver.AppleSMC 3.1.3d10
com.apple.driver.IOPlatformPluginLegacy 5.0.0d8
com.apple.driver.IOPlatformPluginFamily 5.1.1d6
com.apple.kext.triggers 1.0
com.apple.driver.AppleUSBBluetoothHCIController 4.0.8f17
com.apple.iokit.IOBluetoothFamily 4.0.8f17
com.apple.driver.AppleUSBHIDKeyboard 160.7
com.apple.driver.AppleHIDKeyboard 160.7
com.apple.iokit.IOUSBHIDDriver 5.0.0
com.apple.driver.AppleUSBMergeNub 5.1.0
com.apple.driver.AppleUSBComposite 5.0.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.2.1
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.iokit.IOATAPIProtocolTransport 3.0.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.2.1
com.apple.iokit.IOFireWireFamily 4.4.8
com.apple.iokit.IOAHCIFamily 2.0.8
com.apple.iokit.IOATAFamily 2.5.1
com.apple.iokit.IONetworkingFamily 2.1
com.apple.iokit.IOUSBUserClient 5.0.0
com.apple.driver.AppleEFIRuntime 1.6.1
com.apple.iokit.IOUSBFamily 5.1.0
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 177.11
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 331.7
com.apple.iokit.IOStorageFamily 1.7.2
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.5
com.apple.iokit.IOPCIFamily 2.7
com.apple.iokit.IOACPIFamily 1.4
Model: MacPro1,1, BootROM MP11.005C.B08, 4 processors, Dual-Core Intel Xeon, 3 GHz, 5 GB, SMC 1.7f10
Graphics: NVIDIA GeForce 7300 GT, NVIDIA GeForce 7300 GT, PCIe, 256 MB
Memory Module: DIMM Riser A/DIMM 1, 512 MB, DDR2 FB-DIMM, 667 MHz, 0x802C, 0x39485446363437324A592D36363742344433
Memory Module: DIMM Riser A/DIMM 2, 512 MB, DDR2 FB-DIMM, 667 MHz, 0x802C, 0x39485446363437324A592D36363742344433
Memory Module: DIMM Riser A/DIMM 3, 2 GB, DDR2 FB-DIMM, 667 MHz, 0x8319, 0x4D4B435333385554412D4944542020202020
Memory Module: DIMM Riser A/DIMM 4, 2 GB, DDR2 FB-DIMM, 667 MHz, 0x8319, 0x4D4B435333385554412D4944542020202020
Bluetooth: Version 4.0.8f17, 2 service, 18 devices, 1 incoming serial ports
Network Service: Ethernet 1, Ethernet, en0
PCI Card: NVIDIA GeForce 7300 GT, sppci_displaycontroller, Slot-1
Serial ATA Device: ST3250824AS Q, 250.06 GB
Serial ATA Device: SAMSUNG HD501LJ, 500.11 GB
Serial ATA Device: WDC WD10EADS-00M2B0, 1 TB
Serial ATA Device: WDC WD10EADS-00M2B0, 1 TB
Parallel ATA Device: SONY DVD RW DW-D150A
USB Device: hub_device, apple_vendor_id, 0x911d, 0xfd500000 / 3
USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0xfd520000 / 5
USB Device: Apple Keyboard, apple_vendor_id, 0x0220, 0xfd522000 / 6
USB Device: Apple Cinema Display, apple_vendor_id, 0x921d, 0xfd530000 / 4
USB Device: USB2.0 Hub, 0x05e3 (Genesys Logic, Inc.), 0x0608, 0xfd400000 / 2
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8206, 0x5d200000 / 2
FireWire Device: built-in_hub, 800mbit_speed
FireWire Device: iSight, Apple Computer, Inc., 200mbit_speed
FireWire Device: unknown_device, unknown_speedKernel panic, machine check, uncorrected error correlates very strongly with RAM memory errors.
Time for a Memory upgrade. -
Please help with timout code. I'm under deadline.
I have a timeline that stops on a frame full of flv playback
components. I need the frame to listen for mouse clicks and after
no mouse clicks for 2-3 minutes I need it to gotoAndPlay frame 1.
As long as the viewer keeps clicking on the video controls it need
to keep reseting the timer.
I have looked all over trying to find something on this and
got some help from the as forum but it's not woking like I need it
to. I'm hoping to have this ready for a tradeshow in a couple of
days.
Any help would be greatly appreciated.
ffI've added this code on the video page frame and it works but
I need to disable it after the goto frame 1 or else it just meets
the criteria for the goto again as soon as it loops around and gets
back to the video page frame and just goes back to frame 1 without
showing the video page frame without the 120 sec check for mouse
movement.
How do I disable this code on frame one and then let it work
again when the timeline gets to the video page frame again.
t=120; // 120 seconds inactivity triggers return to frame 1
clearInterval(inactiveI); // <-- new statement
inactiveI=setInterval(inactiveF,1000*t);
function inactiveF(){
_root.gotoAndPlay(1);
_root.onMouseMove=function(){
clearInterval(inactiveI);
inactiveI=setInterval(inactiveF,1000*t); -
Help With Crash Code In PRE8 Please
In an interest to turn some of my recent discussions in a more positive direction and in keeping with the primary function of this forum (seeking advice and solutions) and in a further effort to not continually ***** about PRE8, can someone please help with and interpret the following crash codes recently generated by PRE8?
Thanks in advance for any help.
Glenn
Description
A problem caused this program to stop interacting with Windows.
Problem signature
Problem Event Name: AppHangXProcB1
Application Name: Adobe Premiere Elements.exe
Application Version: 8.0.0.0
Application Timestamp: 4aa5c87c
Hang Signature: ba8e
Hang Type: 32
Waiting on Application Name: ElementsOrganizerSyncAgent.exe
Waiting on Application Version: 8.0.0.0
OS Version: 6.0.6001.2.1.0.256.1
Locale ID: 1033
Additional Hang Signature 1: cb0b340a390054264815ceb8e3574d53
Additional Hang Signature 2: 84f3
Additional Hang Signature 3: f0a90877ec38c16fd285cc410c83433d
Additional Hang Signature 4: ba8e
Additional Hang Signature 5: cb0b340a390054264815ceb8e3574d53
Additional Hang Signature 6: 84f3
Additional Hang Signature 7: f0a90877ec38c16fd285cc410c83433d
Extra information about the problem
Bucket ID: 749899167
Description
A problem caused this program to stop interacting with Windows.
Problem signature
Problem Event Name: AppHangXProcB1
Application Name: Adobe Premiere Elements.exe
Application Version: 8.0.0.0
Application Timestamp: 4aa5c87c
Hang Signature: ba8e
Hang Type: 32
Waiting on Application Name: ElementsOrganizerSyncAgent.exe
Waiting on Application Version: 8.0.0.0
OS Version: 6.0.6001.2.1.0.256.1
Locale ID: 1033
Additional Hang Signature 1: cb0b340a390054264815ceb8e3574d53
Additional Hang Signature 2: 84f3
Additional Hang Signature 3: f0a90877ec38c16fd285cc410c83433d
Additional Hang Signature 4: ba8e
Additional Hang Signature 5: cb0b340a390054264815ceb8e3574d53
Additional Hang Signature 6: 84f3
Additional Hang Signature 7: f0a90877ec38c16fd285cc410c83433d
Extra information about the problem
Bucket ID: 749899167
Description
A problem caused this program to stop interacting with Windows.
Problem signature
Problem Event Name: AppHangXProcB1
Application Name: Adobe Premiere Elements.exe
Application Version: 8.0.0.0
Application Timestamp: 4aa5c87c
Hang Signature: ba8e
Hang Type: 32
Waiting on Application Name: ElementsOrganizerSyncAgent.exe
Waiting on Application Version: 8.0.0.0
OS Version: 6.0.6001.2.1.0.256.1
Locale ID: 1033
Additional Hang Signature 1: cb0b340a390054264815ceb8e3574d53
Additional Hang Signature 2: 84f3
Additional Hang Signature 3: f0a90877ec38c16fd285cc410c83433d
Additional Hang Signature 4: ba8e
Additional Hang Signature 5: cb0b340a390054264815ceb8e3574d53
Additional Hang Signature 6: 84f3
Additional Hang Signature 7: f0a90877ec38c16fd285cc410c83433d
Extra information about the problem
Bucket ID: 749899167
Description
A problem caused this program to stop interacting with Windows.
Problem signature
Problem Event Name: AppHangB1
Application Name: Adobe Premiere Elements.exe
Application Version: 8.0.0.0
Application Timestamp: 4aa5c87c
Hang Signature: af71
Hang Type: 0
OS Version: 6.0.6001.2.1.0.256.1
Locale ID: 1033
Additional Hang Signature 1: 37a5e7ba79ac8a533571e7d8f2e8acd0
Additional Hang Signature 2: d900
Additional Hang Signature 3: 431be4795d1c061aba02734aa57c4950
Additional Hang Signature 4: af71
Additional Hang Signature 5: 37a5e7ba79ac8a533571e7d8f2e8acd0
Additional Hang Signature 6: d900
Additional Hang Signature 7: 431be4795d1c061aba02734aa57c4950
Extra information about the problem
Bucket ID: 811067413
Description
A problem caused this program to stop interacting with Windows.
Problem signature
Problem Event Name: AppHangB1
Application Name: Adobe Premiere Elements.exe
Application Version: 8.0.0.0
Application Timestamp: 4aa5c87c
Hang Signature: 7008
Hang Type: 0
OS Version: 6.0.6001.2.1.0.256.1
Locale ID: 1033
Additional Hang Signature 1: f0af3d01fb74f43241231d4e61778ffa
Additional Hang Signature 2: 0fb3
Additional Hang Signature 3: a5f1d311bc7bfa26f067b42cbdeac6af
Additional Hang Signature 4: 7008
Additional Hang Signature 5: f0af3d01fb74f43241231d4e61778ffa
Additional Hang Signature 6: 0fb3
Additional Hang Signature 7: a5f1d311bc7bfa26f067b42cbdeac6af
Extra information about the problem
Bucket ID: 781893170Here are my system specs. Let me know if you need anything else.
Thanks
Glenn
Operating System
MS Windows Vista Ultimate SP2
Installation Date: 06 March 2009, 02:58
Intel Mobile Core 2 Duo T9550
Cores 2
Threads 2
Name Intel Mobile Core 2 Duo T9550
Code Name Penryn
Package Socket P (478)
Technology 45nm
Specification Intel Core2 Duo CPU T9550 @ 2.66GHz
Family 6
Extended family 6
Model 7
Extended model 17
Stepping A
Revision E0
Instructions MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, EM64T
Bus speed 266.0 MHz
Rated Bus speed 1064.0 MHz
Stock core speed 2666 MHz
Stock bus speed 266 MHz
Average Temperature 36 °C
Cache
L1 data cache size 2 x 32 KBytes
L1 instructions cache size 2 x 32 KBytes
L2 unified cache size 6144 KBytes
Core 1
Core speed 1596.0 MHz
Multiplier x 6.0
Bus speed 266.0 MHz
Rated Bus speed 1064.0 MHz
Temperature 37 °C
Thread 1
APIC ID 0
Core 2
Core speed 2660.0 MHz
Multiplier x 6.0
Bus speed 266.0 MHz
Rated Bus speed 1064.0 MHz
Temperature 36 °C
Thread 1
APIC ID 1
Memory
Type DDR2
Size 4096 MBytes
Channels # Dual
DRAM frequency 399.0 MHz
CAS# Latency (CL) 6.0 clocks
RAS# to CAS# delay (tRCD) 6 clocks
RAS# precharge (tRP) 6 clocks
Cycle time (tRAS) 18 clocks
SPD
Number of SPD modules 2
Slot #1
Type DDR2
Size 2048 MBytes
Manufacturer Hyundai Electronics
Max bandwidth PC2-6400 (400 MHz)
Part number HYMP125S64CP8-S6
Serial number 00007112
Week/year 52 / 08
SPD Ext. EPP
JEDEC #3
Frequency 400.000000 MHz
CAS# latency 6.0
RAS# to CAS# 6
RAS# Precharge 6
tRAS 18
tRC 24
Voltage 1.8 V
JEDEC #2
Frequency 333.333344 MHz
CAS# latency 5.0
RAS# to CAS# 6
RAS# Precharge 6
tRAS 16
tRC 21
Voltage 1.8 V
JEDEC #1
Frequency 266.666656 MHz
CAS# latency 4.0
RAS# to CAS# 4
RAS# Precharge 4
tRAS 12
tRC 16
Voltage 1.8 V
Slot #2
Type DDR2
Size 2048 MBytes
Manufacturer Hyundai Electronics
Max bandwidth PC2-6400 (400 MHz)
Part number HYMP125S64CP8-S6
Serial number 02008065
Week/year 52 / 08
SPD Ext. EPP
JEDEC #3
Frequency 400.000000 MHz
CAS# latency 6.0
RAS# to CAS# 6
RAS# Precharge 6
tRAS 18
tRC 24
Voltage 1.8 V
JEDEC #2
Frequency 333.333344 MHz
CAS# latency 5.0
RAS# to CAS# 6
RAS# Precharge 6
tRAS 16
tRC 21
Voltage 1.8 V
JEDEC #1
Frequency 266.666656 MHz
CAS# latency 4.0
RAS# to CAS# 4
RAS# Precharge 4
tRAS 12
tRC 16
Voltage 1.8 V
Mother Board
Manufacturer Dell, Inc.
Model 0P786H
Version A04
Chipset vendor Intel
Chipset model PM45
Chipset revision 07
Southbridge vendor Intel
Southbridge model 82801IM (ICH9-M)
Southbridge revision 03
BIOS
Brand Dell Inc.
Version A04
Date 11/26/2008
Monitor
Name Generic PnP Monitor on ATI Mobility Radeon HD 3650
State enable
State primary
Monitor Width 1920
Monitor Height 1200
Monitor Bit 32
Monitor Frequency 60
Device: \\.\DISPLAY1\Monitor0
Name Default Monitor on ATI Mobility Radeon HD 3650
State disabled
State removable
Monitor Width 800
Monitor Height 600
Monitor Bit 32
Monitor Frequency 60
Device: \\.\DISPLAY2
ATI Mobility Radeon HD 3650
GPU M86
Device ID 1002-9591
Subvendor Dell (1028)
-
Purchased DVD in US for Cdn viewing. Digital download will not work in Cda or US? please help with new Digital code that will work
You will need to contact the movie studio that produced the DVD and ask if they can issue you a new code valid for Canada. Apple cannot help you, and everyone here in these forums is just a fellow user.
Regards. -
I switched over from an iPhone to a Samsung Galaxy S3 & I haven't been able to receive any text messages from iPhones. I have no problem sending the text messages but I'm not receivng any from iPhones at all. It has been about a week now that I'm having this problem. I've already tried fixing it myself and I also went into the sprint store, they tried everything as well. My last option was to contact Apple directly. Please help with turning my iMessage completely off so that I can receive my texts.
If you registered your iPhone with Apple using a support profile, try going to https://supportprofile.apple.com/MySupportProfile.do and unregistering it. Also, try changing the password associated with the Apple ID that you were using for iMessage.
-
How can I sync my iPhone on a different computer without erasing my applications? My iPhone was earlier synced with a PC which I don't use anymore.
On the new computer, I am getting a message that my all purchases would be deleted if I sync it with new iTunes library.
Please help with proper steps, if any.Also see... these 2 Links...
Recovering your iTunes library from your iPod or iOS device
https://discussions.apple.com/docs/DOC-3991
Syncing to a New Computer...
https://discussions.apple.com/docs/DOC-3141 -
Please help with the message I am receving on startup ""You can't open the application NovamediaDiskSupressor because PowerPC applications are no longer supported."
I have read some of the replies in the Apple Support Communities, but as I am no techie, I would have no idea how I would implement that solution.
Please help with what I need to type, how, where, etc.
Many thanks
AppleSueIn HunterCreekI am afraid there is no solution.
PowerPC refers to the processing chip used by Apple before they transferred to Intel chips. They are very different, and applications written only for PPC Macs cannot work on a Mac running Lion.
You could contact the developers to see if they have an updated version in the pipeline. -
Hi, please help with the installation of Lightroom 4, I bought a new Mac (Apple) and I want to install a software that I have on the album cd. My new computer does not have the drives. Can I download software from Adobe? Is my license number just to be able to download the srtony adobe.
Adobe - Lightroom : For Macintosh
Hal -
[ETL]Could you please help with a problem accessing UML stereotype attributes ?
Hi all,
Could you please help with a problem accessing UML stereotype attributes and their values ?
Here is the description :
-I created a UML model with Papyrus tool and I applied MARTE profile to this UML model.
-Then, I applied <<PaStep>> stereotype to an AcceptEventAction ( which is one of the element that I created in this model ), and set the extOpDemand property of the stereotype to 2.7 with Papyrus.
-Now In the ETL file, I can find the stereotype property of extOpDemand as follows :
s.attribute.selectOne(a|a.name="extOpDemand") , where s is a variable of type Stereotype.
-However I can't access the value 2.7 of the extOpDemand attribute of the <<PaStep>> Stereotype. How do I do that ?
Please help
Thank youHi Dimitris,
Thank you , a minimal example is provided now.
Version of the Epsilon that I am using is : ( Epsilon Core 1.2.0.201408251031 org.eclipse.epsilon.core.feature.feature.group Eclipse.org)
Instructions for reproducing the problem :
1-Run the uml2etl.etl transformation with the supplied launch configuration.
2-Open lqn.model.
There are two folders inside MinimalExample folder, the one which is called MinimalExample has 4 files, model.uml , lqn.model, uml2lqn.etl and MinimalExampleTransformation.launch.
The other folder which is LQN has four files. (.project),LQN.emf,LQN.ecore and untitled.model which is an example model conforming to the LQN metamodel to see how the model looks like.
Thank you
Mana -
Want a complete migration guide to upgrade 11.1.0.7 to 11.2.0.3 database using DBUA..We are implementing R12.1.3 version and then have to migrate the default 11gR1 database to 11.2.0.3 version. Please help with some step by step docs
Upgrade to 11.2.0.3 -- Interoperability Notes Oracle EBS R12 with Oracle Database 11gR2 (11.2.0.3) (Doc ID 1585578.1)
Upgrade to 11.2.0.4 (latest 11gR2 patchset certified with R12) -- Interoperability Notes EBS 12.0 and 12.1 with Database 11gR2 (Doc ID 1058763.1)
Thanks,
Hussein -
Can you help with the code to publish Flash to my own domain.
Thank you for your help, I publish the my site to my own domain, I do not use .Mac, I tested your code and ity works well on .Mac, can you help with the code to publish to my own domain.
Thank you againYou appear to have just collected a variety of code snippets and thrown them together, including a section of AS2 code ( gage.onRelease = function() {... )
The suggestion I offered yesterday still stands. You should find a tutorial regarding AS3 and the atan2 function. Beyond that, what you show suggests this is a school assignment. You should seek help from your fellow students and instructor if that is the case.
Maybe you are looking for
-
Is it possible to use HTML tags to format a string displayed within a text view. If so how?
-
Linked lists problem -- help needed
Hello again. I've got yet another problem in my C++ course that stems from my use of a Mac instead of Windows. I'm going to install Parallels so I can get Windows on my MacBook and install Visual Studio this week so that I don't have to deal with the
-
Gradient Mesh Tool won't work over a standard gradient
How can I get the Mesh Tool to work over a gradient? If I place an RGB image and create a gradient mesh over it I can select each individual point and then use the color picker to pick a color underneath by clicking the placed image. However, if I cr
-
Examples for Initialization event
can any one give some examples for initialization event with regards nagaraj Moderator Message: Basic question. Thread locked. Edited by: Suhas Saha on Nov 8, 2011 12:56 PM
-
Attachments View Error in FB03
Hi friends, I've two documents for which i'm trying to view the attachments through FB03 and one of them is not working: 2980 1900042489 2011 2980 1900043902 2011 10/17 I am finding that older images linked prior to the October release get the www.w