Stacks for implementing back command!
This here is my Game class, everything works, but im trying to implement a back command by using stacks. I have imported stacks in and all that...The problem im having is that when i go into another room it adds the room in, but im trying to pop it from another method. Iv seen examples of popping within the same method but not from another method.
private void goRoom(Command command)
if(!command.hasSecondWord())
// if there is no second word, we don't know where to go...
System.out.println("Go where?");
return;
String direction = command.getSecondWord();
// Try to leave current room.
Room nextRoom = currentRoom.nextRoom(direction);
if (nextRoom == null)
System.out.println("There is no door!");
else
Stack stack = new Stack();
currentRoom = nextRoom;
System.out.println(currentRoom.longDescription());
stack.push(currentRoom); <<<<<<<<<<<<<<<<<<-----As seen here the currentRoom gets pushed in....but i need to pop out which im trying to do below
private void goBack(Command command)
if(previousRoom == null) {
System.out.println("Sorry, cannot go back!");
return;
if(command.hasSecondWord()) {
// if there is a second word, we cannot go back...
System.out.println("I don't know what you mean...");
return;
stack.pop(); <<<<<<<<<<<<<<<<<<<<<<<<<<-------------- I cant get that syntax to access the above method and make them work togeather. It works within the same method, but 2 differnet methods its having a problem. Can someone give me the correct
currentRoom = previousRoom; syntax so i can use that to pop it out from a different method. Thanks alot much appriciated!
System.out.println(currentRoom.longDescription()); //print method where you are
}
Because stack is now an instance variable, its scope is for the whole class. That means, every method has direct access to it. So, both goRoom and goBack methods will work on the same variable.
I'll suggest to read about variable scoping in java.
Now that the variable is an instance variable, in an application, this could easily lead to multi-threading synchronization problems, if your application is multi-threaded.
So I'll wrap my stack operations in a synchronize block:
synchronize
stack.push (obj);
}and
synchronize
stack.pop ();
}
Similar Messages
-
Hey guys posted on here last night, the replies were great..thanks for that...I got one minor problem...
private void goRoom(Command command)
if(!command.hasSecondWord())
// if there is no second word, we don't know where to go...
System.out.println("Go where?");
return;
String direction = command.getSecondWord();
// Try to leave current room.
Room nextRoom = currentRoom.nextRoom(direction);
if (nextRoom == null)
System.out.println("There is no door!");
else
stack = new Stack(); <---------------------------------------------------makes a new stack
currentRoom = nextRoom; <-------------------------------------------this here takes the person into the next room
System.out.println(currentRoom.longDescription());
stack.push(currentRoom); <------------------------------------------- everytime a person enters the next room it records it in a stack
private void stepBack(Command command)
if(stack.isEmpty()) {
System.out.println("Sorry, cannot go back!");
return;
if(command.hasSecondWord()) {
// if there is a second word, we cannot go back...
System.out.println("I don't know what you mean...");
return;
stack.pop(); <------------------------------------------------------------------------------------------- I can now pop, but i need to use this value so it goes back in the room you came from
currentRoom = ; <------------------------------------------------------------------------------------------- What do i put as the syntax in here to successfully use the value from stack.pop() to go back in the previous room. Hope your able to help, thanks guys!!
System.out.println(currentRoom.longDescription()); //print method where you are
}private void goRoom(Command command)
if(!command.hasSecondWord())
// if there is no second word, we don't know where to go...
System.out.println("Go where?");
return;
String direction = command.getSecondWord();
// Try to leave current room.
Room nextRoom = currentRoom.nextRoom(direction);
if (nextRoom == null)
System.out.println("There is no door!");
else
stack = new Stack();
currentRoom = nextRoom;
stack.push(currentRoom);
System.out.println(currentRoom.longDescription());
private void stepBack(Command command)
if(stack.isEmpty()) {
System.out.println("Sorry, cannot go back!");
return;
if(command.hasSecondWord()) {
// if there is a second word, we cannot go back...
System.out.println("I don't know what you mean...");
return;
currentRoom = (Room)stack.pop();
System.out.println(currentRoom.longDescription()); //print method where you are
}I have this implemented, but everytime i type in back it doesnt actually move back to the previous room. Can anyone suggest why? or am I doing something wrong here, thanks! -
Error with stack in back command
I'm creating a game and I need a goBack command to get to the previous rooms of my game. I used a stack to do that but i keep getting compiling errors. The code i've used is
private void stepBack(Command command)
if(stack.isEmpty()) {
System.out.println("Sorry, cannot go back!");
return;
if(command.hasSecondWord()) {
// if there is a second word, we cannot go back...
System.out.println("I don't know what you mean...");
return;
stack.pop();
player.getCurrentRoom() = stack.peep();
System.out.println(player.getCurrentRoom().longDescription()); //print method where you are
}And for the goRoom command is
private void goRoom(Command command)
if(!command.hasSecondWord()) {
// if there is no second word, we don't know where to go...
System.out.println("Go where?");
return;
String direction = command.getSecondWord();
// Try to leave current room.
Room nextRoom = player.getCurrentRoom().getExit(direction);
if (nextRoom == null)
System.out.println("There is no door!");
else
stack.push(player.getCurrentRoom());
player.getCurrentRoom() = nextRoom;
System.out.println(player.getCurrentRoom().longDescription());
}I have initialised the stack at the beginning with
import java.util.Stack;
import java.util.ArrayList;
public class Game
private Parser parser;
private Player player;
private ArrayList<Item> inventory;
private Stack stack;
* Create the game and initialise its internal map.
public Game()
parser = new Parser();
player = new Player();
inventory = new ArrayList<Item>();
Stack stack = new Stack();
The error i keep getting is in the line
player.getCurrentRoom() = stack.peep();In the stepBack command and it says unexpected type.The error i keep getting is in the line
player.getCurrentRoom() = stack.peep();In the stepBack command and it says unexpected type.First of all, you can't put "player.getCurrentRoom()" on the left side of an assignment; it is the result of a method invocation, and is not an lvalue. You cannot assign to it. You might want a "setCurrentRoom()" method or something.
Second, the type for your "stack" should have a type parameter, probably Stack<Room>. -
Disable "back" command for mousebutton 3, "the wheel"-click.
For as long as I can remember the mousebutton 3 on my Logitech MX518 has had the following function:
1) When pressing on a non-link item, nothing happens
2) When pressing on a link; that link opens in a new tab.
Sometime in the last 6 months new behaviour was introduced as follows:
1) When pressing on a non-link item, the "back" command is executed.
2) When pressing on a link; that link opens in a new tab.
The annoying part here is that if I miss-click a link, the current tab loads the last visited page which is sort of the opposite effect I want. I want to open a link in a new tab and still stay on the current page I'm reading.
So my questions:
1) Is this a feature of Firefox (or perhaps website specific behaviour?) and if so, when was it introduced?
2) Can I disable this feature, e.g. in about:config?You may have a problem with the mousewheel.*.action prefs and Firefox thinks that you want to go back in the tab history.<br />
You can try to set them all to 0 or 1 to make the page scroll.
See http://kb.mozillazine.org/About:config_entries#Mousewheel.
*mousewheel.with*.action 0:Scroll Lines; 1:Scroll Page; 2:History; 3:TextZoom; -
FMS not responding for RTMP publish command
Hi,
Please answer to the followong questions
1. I am developing an RTMP encoder application. The application is establishing a connection and creating a new stream. But when publish command is sent to the server, the server should respond with "on status" message. The server is not giving any response, but when publish command is sent in 'record' mode, a new directory is getting created the application folder of the server. So, the problem is the server is receiving the publish command but not giving any response. Please the possible reasons for FMS's behaviour. Can encoder start sending audio / video data without receivng the response for the publish command from the server? Please let us know.
2. Also, which of the follwing publishing name is correct. Should videoKeyframeFrequency and totalDatarate be part of publishing name.
publishing_name = mylivestream
publishing_name = mylivestream?videoKeyframeFrequency=5&totalDatarate=248
3. Is calling RTCs 'releaseStream' and 'FCPublish' must before sending 'publish' command?
Thanks and Regards,
VishwanathHi,
Thanks for your interest on FMS.
1. How are you catching the events back from the server ? Server always sends the response codes and you must be catching them through event listeners on the client side (asynchronous). There is no way the server cannot send back the responses and still do the job of creating folders etc.
2. Yes, sending the metadata info and other required info as query parameters along with the streams is one of the very good ways to deliver.
3. These methods are not mandatory to be used. They are optional and the sample application live that comes with the FMS has the implementation for these and hence, it just expects the encoder/clients to call them on it. Nice to have though.
Why don't you post these queries in the FMS forums instead of HTTP Streaming (here)? My only concern is, you will get more quick and better expert answers as many FMS guys are watching them. HDS guys are watching this thread. -
I'm not even sure if this is an extension or plug-in and all I can tell you is what I have already stated. I can only make one command at a time and after each one I get a pop-up from Java script that says uninstal set. I must depress ok to move on, but only for one more command and it starts over again. This also happened when I tried to instal firefox 4 a couple months ago and I deleted the program and went back to an earlier version.
Mail troubleshooting - Yosemite
Troubleshooting sending and receiving email messages
Troubleshooting sending email messages
SMTP servers keep going offline -
Is KM ,TREX is must For implementation of CRM business package?
Hi all,
Is KM ,TREX installation is must For implementation of CRM business package on EP?
regards
RajendraRajendra,
As you probably already have checked on portal content studio, this business package is functionally identical to the Business Package for CRM 50.2. The only difference is the addition of more languages that are not supported by EP 5.0.
System Availability
Primary Backend System
SAP - CRM 4.0
Portal Release
EP 6.0 (SP2 and higher), NetWeaver '04 (SP Stack 03 and higher), NetWeaver 2004s (SP Stack 04 and higher)
Other Prerequisites:
SAP BW 3.1 + CONT 3.20
R/3 4.6C (and higher), Plugin 2003.1
SEM 3.5
iView Runtime Technology:
Java / HTMLB (WAS 6.20 and higher), BSP iView on WAS, BW iView (BW 3.20 and higher)
Languages
English, French, German, Italian, Portuguese, Spanish, Chinese (simplified), Chinese (traditional), Czech, Danish, Dutch, Finnish, Hungarian, Japanese, Korean, Norwegian, Polish, Russian, Slowakian, Swedish, Thai, Turkish
James -
How to specify for JVM the stack for ONE specific thread that invokes JNI
Hello all!
I'm 2 days now looking for a solution in several forums but even in Sun Java Forums nobody was able to come up with a solution. If you know a better forum to place it, please let me know.
Description:
I have an application that launches several threads of different types. One of them is quite specific and run a critical JNI C++ process. The remaining ones are just for controling of other stuff... When I call the application by the command line
java -classpath ... -Xss20m -Djava.library.path ... pack.subpack.myApp
the application usually crashes: My computer has 256MB RAM of memory that vanish in seconds and causes an OutOfMemoryException
Sometimes the application works properly, but sometimes the memory usage goes up fast until a general crash.
What I believe that is going on:
When we declare -Xss20m, I undestand that for each thread the JVM will attemp to allocate more 20MB, and if I have 10 threads, it goes up to 200MB and so on; however I'd like to have 20MB just for my critical process (that is called in one specific thread) and not for any thread.
If I try to reduce -Xss parameter to, let's say 10MB, my C++ process overflow the JVM stack for the thread.
So, does any body have know how to solve it? Please... I need experts help!
Thanks a lot,
CalegariThere we go...
I have this class:
package calegari.automata;
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: </p>
* @author Aur�lio Calegari
* @version 1.0
public class Native {
* Parameters:
* individuals --> All binary individual (AC rule)
* indivLength --> number of infividuals
* numEval --> number of RIs
* generateUniform --> Uniform distribution of density
* seed --> seed for current generation
public native double[] AutomataIterator(int[][] individuals,
int indvLength,
int numEval,
boolean generateUniform,
long seed
static {
System.loadLibrary("Native");
public Native() {
Then, running
javah -classpath ... calegari.automata.Native
I'll get the following .h
/* DO NOT EDIT THIS FILE - it is machine generated */
#include "jni.h"
/* Header for class calegari_automata_Native */
#ifndef Includedcalegari_automata_Native
#define Includedcalegari_automata_Native
#ifdef __cplusplus
extern "C" {
#endif
* Class: calegari_automata_Native
* Method: AutomataIterator
* Signature: ([[IIIZJ)[D
JNIEXPORT jdoubleArray JNICALL
Java_calegari_automata_Native_AutomataIterator___3_3IIIZJ
(JNIEnv *, jobject, jobjectArray, jint, jint, jboolean, jlong);
#ifdef __cplusplus
#endif
#endif
Next, I built my cpp file which is right bellow
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include "jni.h"
#include "calegari_automata_Native.h"
#include "util.h"
double IndividualEvaluator(long rule[], int automataCells[][149], int numInit1s[],
int numOfACs, int numEvaluations);
char getNext(char simb);
JNIEXPORT jdoubleArray JNICALL
Java_calegari_automata_Native_AutomataIterator___3_3IIIZJ
(JNIEnv *env, jobject jobj, jobjectArray indiv, jint length, jint numEval,
jboolean isUniform, jlong seed)
printf("Native JVM call for C++ critical block: Started \a[-]");
int ACs[10000][149]; //Will be filled with 100000 Initial states of a cellular automata
int numIndiv = length;
int numOfACs = numEval;
//Dencity of each Initial state of cellular automata
int num1sRIs[10000];
//response
double resp[1000];
//set seed
srand((unsigned int) seed);
//generate Cellular automata states
//Uniform generation
if(isUniform)
for(int i=0;i<numEval;i++)
int num1s;
num1s=0;
for(int j=0;j<149;j++)
ACs[i][j] = ((rand()%numEval)<i+1?0:1);
if(ACs[i][j]==1) num1s++;
num1sRIs[i] = num1s;
printf(" %d ",num1s);
else //not uniform generation
for(int i=0;i<numEval;i++)
int num1s;
num1s=0;
for(int j=0;j<149;j++)
ACs[i][j] = rand()%2;
if(ACs[i][j]==1) num1s++;
num1sRIs[i] = num1s;
//load individuals and start the critical method
char simb = '-';
for(int i=0;i<numIndiv;i++)
jintArray oneDim = (jintArray) env->GetObjectArrayElement(indiv, i);
jint *indiv=env->GetIntArrayElements(oneDim, 0);
simb = getNext(simb);
printf("\b\b%c]",simb);
resp[i] = IndividualEvaluator(indiv,ACs,num1sRIs,numOfACs,300);
jdoubleArray retApts;
retApts = env->NewDoubleArray(numIndiv);
env->SetDoubleArrayRegion((jdoubleArray)retApts,(jsize)0,numIndiv,(jdouble *)resp);
printf("\nReturning to Java plataform: Completed\a\a\n");
return retApts;
char getNext(char simb)
if(simb=='-') simb = '\\';
else if(simb=='\\') simb = '|';
else if(simb=='|') simb = '/';
else if(simb=='/') simb = '-';
return simb;
Then it works fine since we declare the size of the stack to JVM, however, if we don't... We get a crash!
Any idea?
Thanks -
I have a net gear wireless router and a APE working great inside the house, but the wireless signal is weak in the backyard, can I get a net gear extender for the back yard and it will boost our wo
Ireless signal and also send my music to the airport express? Or does the airport express work as a stand alone hub?Trust me when I say this coming from 20 years of experience.
Get a powered external drive, format it 1 Partition Option: GUID and OS X Extended Journed as the format in Disk Utility.
Download and install Carbon Copy Cloner, clone internal drive to external drive.
Set a schedule to remind you to do it at least once a week, keep it near your charger.
When you plug your charger in, do plug the clone and power the machine up, set the display to sleep only,
CCC will do the rest.
If you want to boot from it, hold the option/alt and select it Startup Manager.
I've seen many TimeMachine and TimeCapsule nightmares and so far haven't seen a problem from anyone using a bootable clone.
It's simple, it's easy, it's more reliable and more powerful than what Apple does and it only takes plugging in a extra cable.
Make as many clones as you want, keep them time seperated, off site etc. etc.
Cables don't have network issues, clones can be verified in seconds merely by booting from them.
Clones protect your productivity, your up in seconds on a clone despite even the hard drive dying.
Software problem? No sweat, boot of the clone and reverse clone your problems away.
If you want to fuss and muss with half implemented TimeMachine and TimeCapsule network headaches then prepare to suffer.
I don't like to suffer, I bought a Mac not to suffer, but it appears you do with TimeMachine and TimeCapsule.
Most commonly used backup methods -
Created a "Stack" for Office 2008 & now Cannot access
I created a Stack for "Office for Mac 2008." After it was created, I threw some files (e.g. "Read Me") back into my HD. I did not open my HD, just dragged the files to the icon. After doing so, Entourage will work as will Messenger, but Word, Excel, and Powerpoint will not work. I tried to drag the files back into the Office folder. It now matches Office on my MacBook. It contains Entourage, Excel, Messenger, Powerpoint, Word, and the folder labeled "Office."
The difference is: on my MacBook, where everything works fine, the "Office for Mac 2008" folder is the usual blue folder. On my iMac, where I am having the trouble described above, it is labeled as a folder, but appears as the yellow Office folder.
When I try to open Word, I receive a message that the application quit unexpectedly. If I choose to "report" it to Apple, I receive the following message:
Process: Microsoft Word 545
Path: /Applications/Microsoft Office 2008/Microsoft Word.app/Contents/MacOS/Microsoft Word
Identifier: com.microsoft.Word
Version: ??? (???)
Build Info: Unknown-81119~0
Code Type: X86 (Native)
Parent Process: launchd 115
Date/Time: 2009-03-03 02:28:26.570 -0500
OS Version: Mac OS X 10.5.6 (9G55)
Report Version: 6
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0
Dyld Error Message:
Library not loaded: @executable_path/../Frameworks/MicrosoftOffice.framework/Versions/12/MicrosoftO ffice
Referenced from: /Applications/Microsoft Office 2008/Microsoft Word.app/Contents/MacOS/Microsoft Word
Reason: image not found
Thanks in advance for any suggestions!Wow, thanks for writing back!
I did try to double click on the Word, Excel, and Powerpoint applications from inside the Microsoft Office folder.
I no longer have the folder in the Dock.
Please forgive this long response, but (as I'm sure you've caught by now) I'm not tech savvy!
If I click on the Microsoft Office 2008 folder, and then click on the "Office" folder inside, I will paste everything I see:
Add-Ins
Alerts Daemon
Clipart Search Expansion 9
Default ACL [Danish]
Default ACL [Dutch]
Default ACL [English]
Default ACL [Finnish]
Default ACL [French]
Default ACL [German]
Default ACL [Italian]
Default ACL [Japanese]
Default ACL [Norwegian Bokmål]
Default ACL [Spanish]
Default ACL [Swedish]
Document Elements
EntourageCAPI.framework
EntourageCore.framework
EntourageLegacy.framework
EntourageSynchronization.framework
Equation Editor
Graph Chart Gallery (12)
Help
Holidays
Media
merp.framework
Microsoft Cert Manager
Microsoft Chart Converter
Microsoft Clip Gallery
Microsoft Database Daemon
Microsoft Database Utility
Microsoft Graph
Microsoft Messaging Library.bundle
Microsoft Project Gallery
Microsoft Query
Microsoft Sync Services
MicrosoftCertificate.framework
MicrosoftChartPlugin.framework
MicrosoftComponentPlugin.framework
MicrosoftConversionLibrary.framework
MicrosoftOffice.framework
MicrosoftOLE.framework
MicrosoftOLEAutomation.framework
MicrosoftOleo.framework
MicrosoftWizard.framework
MSLS3.framework
MSXML.framework
My Day
Netlib.framework
Office First Run
OfficeArt.framework
OfficePID.plist
Organization Chart
Organization Chart Template
PowerPlant.framework
PowerPlantCore.framework
Queries
SetupInfo.plist
Shared Applications
SmartArt.framework
Startup
StdUrlMoniker.framework
Type Libraries
Thanks again for any other suggestions! -
Event for Default BACK button in a window
Hi,
I am trying to edit marketing attribute set. If I click on back without save, I am getting the popup "do you want to save". It is happening for all the standard fields in that page.
I have one value attribute. If I change this field, and say back, popup is not coming. I tried to debug this back, however, I am unable to find the event which is getting triggered for this back function. And I am clue less how this popup is coming for all the standard bol attributes.
Component : ATRAE_SET
I added value attribute in : ATRAE_SET/VHeader ---> context node HEADER.
Could you please help me out?
Thanks,
SandeepHi,
usually the window of the UI component will implement an event handler method ON_BEFORE_WA_CONTENT_CHANGE to change whether the data loss popup (IF_BSP_WD_DATA_LOSS_HANDLER) needs to be triggered. The events from the data loss pop-up are again handled by IF_BSP_WD_EVENT_HANDLER~HANDLE_EVENT of the window, e.g. the save event if_bsp_wd_data_loss_handler=>save_event.
Best Regards,
Michael -
Implementing "Back" functionality
Hi
I am using VC and CAF for implementing certain functionality.
The requirement is: I have many screens and all of them have a "Back" button.
When i click on the "Back" button the previous screen must be displayed with its values.
I think currently this may not be possible because, each VC screen is a callable object and is enclosed in an action. When we move to the next screen, the previous action is completed and the next action is triggered.
Is there any way where i can dynamically choose the next action based on certain conditions using GP Runtime API ?
or Is there any way in which i can go back to the previous action when i click on "Back".
Any other way/logic i can use to achieve this?
Hi Moderators
Could you please let me know if such functionality ("Back") is posible with Callable objects/Actions ?
Also please suggest any alternate ways in which this can be achieved.
Message was edited by:
aditya srinivasaThank you for the inputs Chandan.
I shall explain my requirement in detail:
Lets say i have 3 screens (Screen1, Screen2 and Screen3).
On Screen1 i have a form to enter user information (like firstname,lastname etc )
On Screen2 i have a form to enter company information (like name,address)
On Screen3 i have a form to enter user preferences information (like mailing address,permanent address)
Each of the above three screens has "Submit Info" button. When clicked on this button the entered info on that screen is submitted to an Oracle table and the next screen is shown.
Also Screen2 and Screen3 have another button - "Back". When this button is clicked on Screen2, Screen1 should be shown with the values (pre-populated in the form) previously entered by the user. When the "Back" button on Screen3 is clicked, Screen2 with its values (pre-populated in the form) should be shown.
What i have done is:
All the screens are modelled in VC. And each of them is wrapped in a callable object (iView) for integration in CAF GP.
Since we have 3 callable objects, there will be 3 actions and a sequential block in this process.
Now, Lets say i am on Screen1. I enter all the info and click on "Submit Info" button. Action1 is completed and immediately Action2 is triggered.
Action2 has Screen2 callable object in it and hence displayes Screen2. At this moment if i click on "Back" button, i want Screen1 with the details i entered in the previous step to be displayed.
Please let me know in case you need any further clarity on the requirement. -
2851 Router VPN - stack for level DMA/Timer Interrupt running low 36/9000
I have a site to site VPN. On my hub router I am seeing the following message EVERY minute in the log!
%sys-6-stacklow: stack for level DMA/Timer Interrupt running low, 36/9000
I have been trying to figure out what the DMA/Timer Interrupt is and what is causing it to run low.
If I run the "show stacks" command I can see:
<output omitted>
Interrupt level stacks:
Level Called Unused/Size Name
2 1578216246 36/9000 DMA/Timer Interrupt
I am also occasionaly seeing the following
%crypto--4-pkt_replay_error:decrypt: replay check failed connection id=7 sequence number=16171319
I don't know if they are related or not, but I need to find out what is causing the DMA/timer interrupt messages.
Thanks.It just rebooted
This router it just stands in front of a few servers and applies NAT.
So far this had happened a few times but since morning it rebooted already 3 times.
The Sagem ADSL router at my house has longer uptime. wtf!?!?
cisco>show stacks
Minimum process stacks:
Free/Size Name
5396/6000 Inspect Init Msg
5368/6000 SPAN Subsystem
58920/60000 EEM Auto Registration Proc
4772/6000 Auto Upgrade Startup Process
5164/6000 DIB error message
5396/6000 SASL MAIN
4968/6000 LICENSE AGENT DEFAULT
5368/12000 Init
4216/6000 Update prst
4384/6000 VPN_HW_MIB_CREATION
5188/6000 RADIUS INITCONFIG
2124/3000 Rom Random Update Process
5316/6000 URPF stats
Interrupt level stacks:
Level Called Unused/Size Name
1 319293 6284/9000 Network interfaces
2 716358 8548/9000 DMA/Timer Interrupt
3 1 8388/9000 PA Management Int Handler
4 115 8612/9000 Console Uart
5 0 9000/9000 External Interrupt
Interrupt level stacks:
Level Called Unused/Size Name
7 72787 8564/9000 NMI Interrupt Handler
Spurious interrupts: 3
System was restarted by bus error at PC 0x4183BC0C, address 0xC3D1CB7 at 10:51:53 UTC Tue Apr 23 2013
2800 Software (C2800NM-ADVSECURITYK9-M), Version 12.4(24)T, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Compiled Wed 25-Feb-09 17:55 by prod_rel_team
Image text-base: 0x40016C60, data-base: 0x42B47360
Stack trace from system failure:
FP: 0x4759C678, RA: 0x4183BC0C
FP: 0x4759C6D0, RA: 0x41836D18
FP: 0x4759C708, RA: 0x4164D7E0
FP: 0x4759C768, RA: 0x41650314
FP: 0x4759C7E8, RA: 0x41650C68 -
Report Open balance for Customers back in time
Dear All,
I would like to have a question: How can I report Highest Balances for Customers back in time? So I have to list Date and Amount, in the last one year, when Customers had their Highest Balances (highest outstanding amount). I have a transaction that can show actual status but I cannot report it for a long period in the past.
Does anyone have an idea how could I do it?
It would be very helpful.
Thank you!
A.Hello,
Solution Manager does not desal with Customer Balances. Perhaps you wanted one of the banking industry forums, or FI AR/AP?
In any event this question will not help you much in this forum.
Regards,
Paul -
Applescript for running sudo commands in terminal
I'm a newbie when it comes to Applescript and was wondering if someone could help with a basic request. I need to write a small script to do the following:
1. Launch terminal
2. Run the 'Sudo -s' command
3. Enter the administrator password (in plain text)
and then
4. run some sudo commands like "sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add administrator"
I actually WANT the administrator password to be in the script in plain text even though I understand the security risks (I will literally be the only person to ever see the script). I've trawled forums all over but can't seem to find what I am looking for and cannot get it working by patching together the various commands I have found. Thanks in advance for any help you can give!
SeanI've included two examples. The preferred way & the hacker way.
with administrator
It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on. Here is an example.
Author: rccharles
For testing, run in the Script Editor.
1) Click on the Event Log tab to see the output from the log statement
2) Click on Run
For running shell commands see:
http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
on run
-- Write a message into the event log.
log " --- Starting on " & ((current date) as string) & " --- "
-- debug lines
set unixDesktopPath to POSIX path of "/System/Library/User Template/"
log "unixDesktopPath = " & unixDesktopPath
set quotedUnixDesktopPath to quoted form of unixDesktopPath
log "quoted form is " & quotedUnixDesktopPath
try
set fromUnix to do shell script "sudo ls -l " & quotedUnixDesktopPath with administrator privileges
display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
on error errMsg
log "ls -l error..." & errMsg
end try
end run
This version has an inline password.
Notice the echo 'password' |
The single quotes are no accident.
It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on. Here is an example.
Author: rccharles
For testing, run in the Script Editor.
1) Click on the Event Log tab to see the output from the log statement
2) Click on Run
For running shell commands see:
http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
on run
-- Write a message into the event log.
log " --- Starting on " & ((current date) as string) & " --- "
-- debug lines
set unixDesktopPath to POSIX path of "/System/Library/User Template/"
log "unixDesktopPath = " & unixDesktopPath
set quotedUnixDesktopPath to quoted form of unixDesktopPath
log "quoted form is " & quotedUnixDesktopPath
try
set fromUnix to do shell script "echo 'password' | sudo ls -l " & quotedUnixDesktopPath
display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
on error errMsg
log "ls -l error..." & errMsg
end try
end run
Maybe you are looking for
-
I am a previous user of itouch and sync'd it with itunes on my PC using windows 7, itunes v10. Bought my first iphone and started using it: I entered contacts, photos, apps, etc.. I sync it for the first time and itunes removed all my data from my I
-
'Save layout' button missing in the ALV report layout screen
Hi Friends, In one of our ALV report the 'save layout' button is missing in the report output screen.i have used the OO concept for creating the ALV output and not the function module.I have attached the code below used for creating the ALV grid
-
Unable to create RFC iviews - connection test of the system failed
hello, I always try to configure my system to run an RFC iView... The connection of myt system is failed for 1 of the 4 tests. i don't know why. I have filled this fields : - application host - ITS host name - ITS path - ITS protocol - Logical system
-
Output Could not be Issued - V1104
Hi Experts, I have configured the output types and output determination procedures for sales doc type OR. When I create a sales order and go to VA02 , and check the header-> output , I am getting this error: 'Output could not be Issued, Message no.V1
-
How I migrated my caldav data (Contacts and Calendars) to Mavericks + Server
Hello, I write this post to share with you the steps I had to take for correctly migrating my caldav database (containing data for Addressbook and Calendar Server) from a Lion Server to Mavericks with Server version 3. The problem occured like this :