Need help with File system creation fro Oracle DB installation
Hello,
I am new to Solaris/Unix system landscape. I have a Sun enterprise 450 with 18GB hard drive. It has Solaris 9 on it and no other software at this time. I am planning on adding 2 more hard drives 18gb and 36gb to accommodate Oracle DB.
Recently I went through the Solaris Intermediate Sys admin training, knows the basic stuff but not fully confident to carry out the task on my own.
I would appreciate some one can help me with the sequence of steps that I need perform to
1. recognize the new hard drives in the system,
2. format,
3. partition. What is the normal strategy for partitioning? My current thinking is to have 36+18gb drives as data drives. This is where I am little bit lost. Can I make a entire 36GB drive as 1 slice for data, I am not quite sure how this is done in the real life, need your help.
4. creating the file system to store the database files.
Any help would be appreciated.
Hello,
Here is the rough idea for HA from my experience.
The important thing is that the binaries required to run SAP
are to be accessible before and after switchover.
In terms of this file system doesn't matter.
But SAP may recommend certain filesystem on linux
please refer to SAP installation guide.
I always use reiserfs or ext3fs.
For soft link I recommend you to refer SAP installation guide.
In your configuration the files related to SCS and DB is the key.
Again those files are to be accessible both from hostA and from hostB.
Easiest way is to use share these files like NFS or other shared file system
so that both nodes can access to these files.
And let the clustering software do mount and unmount those directory.
DB binaries, data and log are to be placed in shared storage subsystem.
(ex. /oracle/*)
SAP binaries, profiles and so on to be placed in shared storage as well.
(ex. /sapmnt/*)
You may want to place the binaries into local disk to make sure the binaries
are always accessible on OS level, even in the connection to storage subsystem
losts.
In this case you have to sync the binaries on both nodes manually.
Easiest way is just put on shared storage and mount them!
Furthermore you can use sapcpe function to sync necessary binaries
from /sapmnt to /usr/sap/<SID>.
For your last question /sapmnt should be located in storage subsystem
and not let the storage down!
Similar Messages
-
Hi,
We are implementing HA NW2004s , the SCS is going to be in active-passive cluster.Suppose we have four system.
Host A --SCS(active)/DB(active)
Host B--SCS(inactive)/DB (acttive)
Host C--CI
Host D--- DI
Please find the <a href="https://weblogs.sdn.sap.com/weblogs/images/251750294/SAP.JPG">Image</a> attached .Based on the above diagram i have following question .
1) what all are the file systems.
2) which of them are soft links.
3) which all file system are on local or shared.
Also can some one suggest the cluster solution which can be used to cluster SCS instance in SAP NW2004s JAVA.
The CI and DI instance resuires the files availble in /sapmnt .In case the /sapmnt fails on Node A . how does the failure on NOde B takes care that /sapmnt content is available for CI and DI.
Can anyone please provide me some solution to these questions.Hello,
Here is the rough idea for HA from my experience.
The important thing is that the binaries required to run SAP
are to be accessible before and after switchover.
In terms of this file system doesn't matter.
But SAP may recommend certain filesystem on linux
please refer to SAP installation guide.
I always use reiserfs or ext3fs.
For soft link I recommend you to refer SAP installation guide.
In your configuration the files related to SCS and DB is the key.
Again those files are to be accessible both from hostA and from hostB.
Easiest way is to use share these files like NFS or other shared file system
so that both nodes can access to these files.
And let the clustering software do mount and unmount those directory.
DB binaries, data and log are to be placed in shared storage subsystem.
(ex. /oracle/*)
SAP binaries, profiles and so on to be placed in shared storage as well.
(ex. /sapmnt/*)
You may want to place the binaries into local disk to make sure the binaries
are always accessible on OS level, even in the connection to storage subsystem
losts.
In this case you have to sync the binaries on both nodes manually.
Easiest way is just put on shared storage and mount them!
Furthermore you can use sapcpe function to sync necessary binaries
from /sapmnt to /usr/sap/<SID>.
For your last question /sapmnt should be located in storage subsystem
and not let the storage down! -
Need Help With File Matching Records
I need help with my file matching program.
Here is how it suppose to work: FileMatch class should contain methods to read oldmast.txt and trans.txt. When a match occurs (i.e., records with the same account number appear in both the master file and the transaction file), add the dollar amount in the transaction record to the current balance in the master record, and write the "newmast.txt" record. (Assume that purchases are indicated by positive amounts in the transaction file and payments by negative amounts.)
When there is a master record for a particular account, but no corresponding transaction record, merely write the master record to "newmast.txt". When there is a transaction record, but no corresponding master record, print to a log file the message "Unmatched transaction record for account number ..." (fill in the account number from the transaction record). The log file should be a text file named "log.txt".
Here is my following program code:
// Exercise 14.8: CreateTextFile.java
// creates a text file
import java.io.FileNotFoundException;
import java.lang.SecurityException;
import java.util.Formatter;
import java.util.FormatterClosedException;
import java.util.NoSuchElementException;
import java.util.Scanner;
import org.egan.AccountRecord;
import org.egan.TransactionRecord;
public class CreateTextFile
private Formatter output1; // object used to output text to file
private Formatter output2; // object used to output text to file
// enable user to open file
public void openTransFile()
try
output1 = new Formatter("trans.txt");
catch (SecurityException securityException)
System.err.println("You do not have write access to this file.");
System.exit(1);
} // end catch
catch (FileNotFoundException filesNotFoundException)
System.err.println("Error creating file.");
System.exit(1);
} // end method openTransFile
// enable user to open file
public void openOldMastFile()
try
output2 = new Formatter("oldmast.txt");
catch (SecurityException securityException)
System.err.println("You do not have write access to this file.");
System.exit(1);
} // end catch
catch (FileNotFoundException filesNotFoundException)
System.err.println("Error creating file.");
System.exit(1);
} // end method openOldMastFile
// add transaction records to file
public void addTransactionRecords()
// object to be written to file
TransactionRecord record1 = new TransactionRecord();
Scanner input1 = new Scanner(System.in);
System.out.printf("%s\n%s\n%s\n%s\n\n",
"To terminate input, type the end-of-file indicator",
"when you are prompted to enter input.",
"On UNIX/Linux/Mac OS X type <ctrl> d then press Enter",
"On Windows type <ctrl> z then press Enter");
System.out.printf("%s\n%s",
"Enter account number (> 0) and amount.","? ");
while (input1.hasNext()) // loop until end-of-file indicator
try // output values to file
// retrieve data to be output
record1.setAccount(input1.nextInt()); // read account number
record1.setAmount(input1.nextDouble()); // read amount
if (record1.getAccount() > 0)
// write new record
output1.format("%d %.2f\n", record1.getAccount(), record1.getAmount());
} // end if
else
System.out.println("Account number must be greater than 0.");
} // end else
} // end try
catch (FormatterClosedException formatterClosedException)
System.err.println("Error writing to file.");
return;
} // end catch
catch (NoSuchElementException elementException)
System.err.println("Invalid input. Please try again.");
input1.nextLine(); // discard input so user can try again
} // end catch
System.out.printf("%s %s\n%s", "Enter account number (> 0) ",
"and amount.","? ");
} // end while
} // end method addTransactionRecords
// add account records to file
public void addAccountRecords()
// object to be written to file
AccountRecord record2 = new AccountRecord();
Scanner input2 = new Scanner(System.in);
System.out.printf("%s\n%s\n%s\n%s\n\n",
"To terminate input, type the end-of-file indicator",
"when you are prompted to enter input.",
"On UNIX/Linux/Mac OS X type <ctrl> d then press Enter",
"On Windows type <ctrl> z then press Enter");
System.out.printf("%s\n%s",
"Enter account number (> 0), first name, last name and balance.","? ");
while (input2.hasNext()) // loop until end-of-file indicator
try // output values to file
// retrieve data to be output
record2.setAccount(input2.nextInt()); // read account number
record2.setFirstName(input2.next()); // read first name
record2.setLastName(input2.next()); // read last name
record2.setBalance(input2.nextDouble()); // read balance
if (record2.getAccount() > 0)
// write new record
output2.format("%d %s %s %.2f\n", record2.getAccount(), record2.getFirstName(),
record2.getLastName(), record2.getBalance());
} // end if
else
System.out.println("Account number must be greater than 0.");
} // end else
} // end try
catch (FormatterClosedException formatterClosedException)
System.err.println("Error writing to file.");
return;
} // end catch
catch (NoSuchElementException elementException)
System.err.println("Invalid input. Please try again.");
input2.nextLine(); // discard input so user can try again
} // end catch
System.out.printf("%s %s\n%s", "Enter account number (> 0),",
"first name, last name and balance.","? ");
} // end while
} // end method addAccountRecords
// close file
public void closeTransFile()
if (output1 != null)
output1.close();
} // end method closeTransFile
// close file
public void closeOldMastFile()
if (output2 != null)
output2.close();
} // end method closeOldMastFile
} // end class CreateTextFile--------------------------------------------------------------------------------------------------
// Exercise 14.8: CreateTextFileTest.java
// Testing class CreateTextFile
public class CreateTextFileTest
// main method begins program execution
public static void main( String args[] )
CreateTextFile application = new CreateTextFile();
application.openTransFile();
application.addTransactionRecords();
application.closeTransFile();
application.openOldMastFile();
application.addAccountRecords();
application.closeOldMastFile();
} // end main
} // end class CreateTextFileTest-------------------------------------------------------------------------------------------------
// Exercise 14.8: TransactionRecord.java
// A class that represents on record of information
package org.egan; // packaged for reuse
public class TransactionRecord
private int account;
private double amount;
// no-argument constructor calls other constructor with default values
public TransactionRecord()
this(0,0.0); // call two-argument constructor
} // end no-argument AccountRecord constructor
// initialize a record
public TransactionRecord(int acct, double amt)
setAccount(acct);
setAmount(amt);
} // end two-argument TransactionRecord constructor
// set account number
public void setAccount(int acct)
account = acct;
} // end method setAccount
// get account number
public int getAccount()
return account;
} // end method getAccount
// set amount
public void setAmount(double amt)
amount = amt;
} // end method setAmount
// get amount
public double getAmount()
return amount;
} // end method getAmount
} // end class TransactionRecord -------------------------------------------------------------------------------------------------
// Exercise 14.8: AccountRecord.java
// A class that represents on record of information
package org.egan; // packaged for reuse
import org.egan.TransactionRecord;
public class AccountRecord
private int account;
private String firstName;
private String lastName;
private double balance;
// no-argument constructor calls other constructor with default values
public AccountRecord()
this(0,"","",0.0); // call four-argument constructor
} // end no-argument AccountRecord constructor
// initialize a record
public AccountRecord(int acct, String first, String last, double bal)
setAccount(acct);
setFirstName(first);
setLastName(last);
setBalance(bal);
} // end four-argument AccountRecord constructor
// set account number
public void setAccount(int acct)
account = acct;
} // end method setAccount
// get account number
public int getAccount()
return account;
} // end method getAccount
// set first name
public void setFirstName(String first)
firstName = first;
} // end method setFirstName
// get first name
public String getFirstName()
return firstName;
} // end method getFirstName
// set last name
public void setLastName(String last)
lastName = last;
} // end method setLastName
// get last name
public String getLastName()
return lastName;
} // end method getLastName
// set balance
public void setBalance(double bal)
balance = bal;
} // end method setBalance
// get balance
public double getBalance()
return balance;
} // end method getBalance
// combine balance and amount
public void combine(TransactionRecord record)
balance = (getBalance() + record.getAmount());
} // end method combine
} // end class AccountRecord -------------------------------------------------------------------------------------------------
// Exercise 14.8: FileMatch.java
import java.io.File;
import java.io.FileNotFoundException;
import java.lang.IllegalStateException;
import java.util.NoSuchElementException;
import java.util.Scanner;
import java.util.Formatter;
import java.util.FormatterClosedException;
import org.egan.AccountRecord;
import org.egan.TransactionRecord;
public class FileMatch
private Scanner inTransaction;
private Scanner inOldMaster;
private Formatter outNewMaster;
private Formatter theLog;
// enable user to open file
public void openTransFile()
try
inTransaction = new Scanner(new File("trans.txt"));
} // end try
catch (FileNotFoundException fileNotFoundException)
System.err.println("Error opening file.");
System.exit(1);
} // end catch
} // end method openTransFile
// enable user to open file
public void openOldMastFile()
try
inOldMaster = new Scanner(new File("oldmast.txt"));
} // end try
catch (FileNotFoundException fileNotFoundException)
System.err.println("Error opening file.");
System.exit(1);
} // end catch
} // end method openOldMastFile
// enable user to open file
public void openNewMastFile()
try
outNewMaster = new Formatter("newmast.txt");
catch (SecurityException securityException)
System.err.println("You do not have write access to this file.");
System.exit(1);
} // end catch
catch (FileNotFoundException filesNotFoundException)
System.err.println("Error creating file.");
System.exit(1);
} // end method openNewMastFile
// enable user to open file
public void openLogFile()
try
theLog = new Formatter("log.txt");
catch (SecurityException securityException)
System.err.println("You do not have write access to this file.");
System.exit(1);
} // end catch
catch (FileNotFoundException filesNotFoundException)
System.err.println("Error creating file.");
System.exit(1);
} // end method openLogFile
// update records
public void updateRecords()
TransactionRecord transaction = new TransactionRecord();
AccountRecord account = new AccountRecord();
try // read records from file using Scanner object
System.out.println("Start file matching.");
while (inTransaction.hasNext() && inOldMaster.hasNext())
transaction.setAccount(inTransaction.nextInt()); // read account number
transaction.setAmount(inTransaction.nextDouble()); // read amount
account.setAccount(inOldMaster.nextInt()); // read account number
account.setFirstName(inOldMaster.next()); // read first name
account.setLastName(inOldMaster.next()); // read last name
account.setBalance(inOldMaster.nextDouble()); // read balance
if (transaction.getAccount() == account.getAccount())
while (inTransaction.hasNext() && transaction.getAccount() == account.getAccount())
account.combine(transaction);
outNewMaster.format("%d %s %s %.2f\n",
account.getAccount(), account.getFirstName(), account.getLastName(),
account.getBalance());
transaction.setAccount(inTransaction.nextInt()); // read account number
transaction.setAmount(inTransaction.nextDouble()); // read amount
else if (transaction.getAccount() != account.getAccount())
outNewMaster.format("%d %s %s %.2f\n",
account.getAccount(), account.getFirstName(), account.getLastName(),
account.getBalance());
theLog.format("%s%d","Unmatched transaction record for account number ",transaction.getAccount());
} // end while
System.out.println("Finish file matching.");
} // end try
catch (NoSuchElementException elementException)
System.err.println("File improperly formed.");
inTransaction.close();
inOldMaster.close();
System.exit(1);
} // end catch
catch (IllegalStateException stateException)
System.err.println("Error reading from file.");
System.exit(1);
} // end catch
} // end method updateRecords
// close file and terminate application
public void closeTransFile()
if (inTransaction != null)
inTransaction.close();
} // end method closeTransFile
// close file and terminate application
public void closeOldMastFile()
if (inOldMaster != null)
inOldMaster.close();
} // end method closeOldMastFile
// close file
public void closeNewMastFile()
if (outNewMaster != null)
outNewMaster.close();
} // end method closeNewMastFile
// close file
public void closeLogFile()
if (theLog != null)
theLog.close();
} // end method closeLogFile
} // end class FileMatch-------------------------------------------------------------------------------------------------
// Exercise 14.8: FileMatchTest.java
// Testing class FileMatch
public class FileMatchTest
// main method begins program execution
public static void main( String args[] )
FileMatch application = new FileMatch();
application.openTransFile();
application.openOldMastFile();
application.openNewMastFile();
application.openLogFile();
application.updateRecords();
application.closeLogFile();
application.closeNewMastFile();
application.closeOldMastFile();
application.closeTransFile();
} // end main
} // end class FileMatchTest-------------------------------------------------------------------------------------------------
Sample data for master file:
Master file
Account Number Name Balance
100 Alan Jones 348.17
300 Mary Smith 27.19
500 Sam Sharp 0.00
700 Suzy Green -14.22Sample data for transaction file:
Transaction file Transaction
Account Number Amount
100 27.14
300 62.11
300 83.89
400 100.56
700 80.78
700 1.53
900 82.17 -------------------------------------------------------------------------------------------------
My FileMatch class program above has bugs in it.
The correct results for the newmast.txt:
100 Alan Jones 375.31
300 Mary Smith 173.19
500 Sam Sharp 0.00
700 Suzy Green 68.09The correct results for the log.txt:
Unmatched transaction record for account number 400Unmatched transaction record for account number 900------------------------------------------------------------------------------------------------
My results for the newmast.txt:
100 Alan Jones 375.31
300 Mary Smith 111.08
500 Sam Sharp 0.00
700 Suzy Green -12.69My results for the log.txt
Unmatched transaction record for account number 700-------------------------------------------------------------------------------------------------
I am not sure what is wrong with my code above to make my results different from the correct results.
Much help is appreciated. Please help.From the output, it looks like one problem is just formatting -- apparently you're including a newline in log entries and not using tabs for the newmast output file.
As to why the numbers are off -- just from glancing over it, it appears that the problem is when you add multiple transaction values. Since account.combine() is so simple, I suspect that you're either adding creating transaction objects incorrectly or not creating them when you should be.
Create test input data that isolates a single case of this (e.g., just the Mary Smith case), and then running your program in a debugger or adding debugging code to the add/combine method, so you can see what's happening in detail.
Also I'd recommend reconsidering your design. It's a red flag if a class has a name with "Create" in it. Classes represent bundles of independant state and transformations on that state, not things to do. -
Need help with complex column creation command
Hello, all
I need help with a complex column creation command and SQL anywhere help is not sufficient for it.
Here is the situation:
I need to write a generic DDL "alter table" command, which can add/modify columns without knowing in advance if they already exist in the destination table.
Is there a command, which looks like:
alter table "table1" add (on existing modify) column1 <datatype> <default> ?
Thank you,
ArcadyHi.
I don't think this is supported in alter table command. But you can code that inside an if statement which queries systables & syscolumns. Your code should be something like that:
if (select count(*) from sysobjects, syscolumns where sysobjects.id = syscolumns.id and sysobjects.name = 'some_table' and syscolumns.name = 'some_column') < 1
begin
alter table some_table add some_column numeric(12) not null
end
This is an example..
Andreas. -
Hello,
I am setting up a new scenario where I get an XML file with PI, send that content via sync SOAP receiver call and direct the result of the web service response to SAP (just back to file as intermediate step).
So far I have the transaction working to the SOAP adapter receiver request / response. I see the correct approval response coming in my SOAP channel (RWB AE payload), but this message gets stuck there before routing back to my receiver interface and mappings.
General setup:
FILE Sender to SYNC OB SI.
OB SI Request is my source message type and Response is my final message output type.
OM Source is this Sync OB SI. Target is a SOAP Sync IB SI. Request Mapping program matches the source file message type and target SOAP layout. Response Mapping matches SOAP response and Target is my final file layout.
Routing for Sync OB SI ID uses this OM for Sync IB SI.
SYNC IB SI has Request and REsponse messages mapping the external SOAP call.
When I test the configuration I get success.
When I send messages through I get error in the adapter about this NO_BACK_SYSTEM_IN_HOPLIST (therefore the response message is not making it back into the IE so that it can be mapped again and forwarded).
Complete error message from RWB Adapter Log "Transmitting the message to endpoint http://[myhostname]:[myport]/sap/xi/engine?type=entry using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: NO_BACK_SYSTEM_IN_HOPLIST:." and the next line is "Received XI System Error. ErrorCode: NO_BACK_SYSTEM_IN_HOPLIST ErrorText: null ErrorStack: Legacy system to which acknowledgment message is to be sent is missing in hoplist (with wasread=false)"
Any ideas for me? (fyi not using BPM).
Regards, Aaron MyersHi AAron,
Looks like this problem has occured before. There are SAP Notes recommended. Below are some helpful links.
http://scn.sap.com/thread/848913
http://scn.sap.com/message/4659941#4659941
Thanks,
Divya. -
Need help with Inventory System
I am trying to throw together a semi-elegant inventory
viewing system for a web site I am creating. The current website is
going to be scrapped and remade relatively soon, so I really just
want a quick and dirty solution. As such, I have been using some
spry with xml datasets. I happened upon an article
here
that clued me in to a particularly interesting method of presenting
the data, so I am attempting a similar design, along with code from
spry samples (lots of cut-n-paste unfortunately, which is probably
a major reason why I have so many problems). Anyway, here is the
relevant info:
Right now I have folders for each category, with an xml file
for each size category. I arranged it this way, because I was
originally going to use straight html files for each size category
and in each folder, obviously not very practical. I played around
with the idea of putting all sizes into one file and letting some
spry+xml magic sort it out, but since I can't even get this to work
I haven't really tried it. If you experts would clue me in as to
which version might be more efficient or if you have any other
ideas please feel free to put me in my place.
Before I go any further, my main problem is the third line of
the first piece of code, I'm having trouble getting the dsStock xml
to load properly. The original example I cited above was using
Coldfusion, but I guesstimated that it wouldn't be a problem to
just load some straight xml files. Before I go any further I would
at least like to know if what I am attempting is possible.
Code to load in data for menus, category selection, and
actual inventory etc........
quote:
var dsCategories = new Spry.Data.XMLDataSet("diamond.xml",
"diamonds/diamond");
var dsSize = new Spry.Data.XMLDataSet("size.xml",
"sizes/size");
var dsStock = new
Spry.Data.XMLDataSet("{dsCategories::@id}/{dsSize::name}.xml",
"inventory/product");
diamond.xml
quote:
<?xml version="1.0" encoding="utf-8"?>
<diamonds>
<diamond
id="AS"><name>Asscher</name><img>../img/diamond/thumb/asscher_diamond_chicago.jpg</img></ diamond>
<diamond
id="CU"><name>Cushion</name><img>../img/diamond/thumb/cushion_diamond_chicago.jpg</img></ diamond>
</diamonds>
size.xml
quote:
<?xml version="1.0" encoding="utf-8"?>
<sizes>
<size><name>0.70-0.99</name></size>
<size><name>1.00-1.49</name></size>
</sizes>
snip of some inventory
quote:
<?xml version="1.0" encoding="utf-8"?>
<inventory>
<product
id="B801-508"><shape>Asscher</shape><weight>0.7</weight><color>G</color>
<clarity>VVS2</clarity><depth>71.1</depth><table>61</table><flo>None
</flo><polish>Excellent</polish>
<symmetry>Very
Good</symmetry><dim>4.97x4.77x3.39</dim><price>2592.1</price>
</product>
<product
id="B800-125"><shape>Asscher</shape><weight>0.7</weight><color>G</color>
<clarity>VS1</clarity><depth>68.2</depth><table>58</table><flo>None
</flo><polish>Very Good</polish>
<symmetry>Very
Good</symmetry><dim>4.93x4.78x3.26</dim><price>2366.7</price>
</product>
</inventory>
Here is the actual code in the site (this seems to work out
alright). I haven't rewritten the actual inventory portion yet,
since I can't really get it to load properly. If I can get the xml
I know that I can get it on the page.
quote:
<ul spry:region="dsCategories"
spry:repeatchildren="dsCategories">
<li class="product" spry:selectgroup="1"
spry:select="selected" spry:hover="hover"
spry:setrow="dsCategories">{dsCategories::name}</li>
</ul>
<ul spry:region="dsSize" spry:repeatchildren="dsSize">
<li class="product" spry:selectgroupd="2"
spry:select="selected" spry:hover="hover"
spry:setrow="dsSize">{dsSize::name}</li>
</ul>
Sorry for the long post, but thanks for taking the time to
give it a read and see if you can help me out. I will be eternally
grateful.Hi StevenMig,
I'm not seeing anything obvious. Have you tried loading your
XML files directly to see if there are errors in the XML? Is your
server serving up XML files with a Content-Type of text/xml or
application/xml?
If you post a sample page, perhaps me or someone else on the
forum can take a look?
--== Kin ==-- -
PHP disaster with entropy installation need help with file location
I have a mac mini snow leopard server running 10.6.5 ,and I was trying to resolve a mcrypt module issue so that I could install wordpress and magento on some of our sites.After doing what I thought was extensive research, I decided to download the entropy php 5.30-3pkg from Marc Liyanage since it was already compiled and had an automatic install.I had the xcode tools installed and was going to attempt to compile it myself,but did not quite understand the instructions on Michael Gracie's site.When I installed the entropy package it told me that i needed to first disable the existing module,and I attempted to uncheck the php5 module,with no luck,as every time I tried to save it it rechecked itself,which I later discovered was happening because of dependency issues, as I had the mail,wiki,etc services on the sites checked. So my problem is that I wasn't aware at the time of the dependency issue,and I just renamed the module and the file name by putting a # in front of both (Inside the server admin dialog box through the pop up window).I didn't think it would hurt since is was going to be disabled,but now i get blank pages when trying to connect,and can't even see a test.php file, nor can I even locate where they say:
software is supposed to be installed into a new directory /usr/local/php5 on my boot volume. If you ever want to get rid of the package, you only have to remove this directory and a symbolic link called +entropy-php.conf in either /etc/apache2/sites or /etc/apache2/other, depending on whether you run OS X Client or Server.
Any help would be appreciated !Thank you so much, that works just like i wanted it to as it downloads the file but then i have the problem of the file being called firename.png (or whatever i put in there instead)
using this i changed the code and made it this instead which works 100%
set download to text returned of (display dialog "Enter IGN" default answer "" buttons {"Download", "Cancel"} default button 1)
set the destination to (choose folder)
do shell script "curl -L http://minecraft.net/skin/" & download & ".png" & " -o " & quoted form of ((POSIX path of the destination) & download & ".png")
so i used the input name again with download and added a .png for the extention and now it downloads the file to the locaiton i specify with the name of the user im entering with the correct exention, 100% awesome ^^
Thank you everyone who help me with that issue, grately appreshiated -
I'm having difficulty setting up a closed loop control system that reduces one of my voltage outputs (connected to a high voltage system) by 30% every time a measured voltage exceeds a certain threshold value. I'm using a USB 6229 DAQ. I've been trying to create a waveform that looks like a DC signal, but the only waveforms that I can seem to manipulate while my VI is running are the stock waveform types. Also, I've tried to use a formula node or conditional structure to update the output value every time the measured voltage exceeds a given value, but everything I do reinitializes the output value every time it runs or won't store the previous signal value. I'm using LabVIEW 8.6 and don't have the PID or similar express VI's. I've attached the mess I've got working right now. Can anyone help? I'm really stuck!
Thanks!
Attachments:
HiV step down.vi 40 KB
output control.vi 100 KBI'm sorry it's such a mess; I'm still pretty new at this. These are both little driver programs for a larger overall control program.
Output control is meant to send a flat signal to the DAQ whose value can be manipulated while the VI is running. I have the second activated segment merely to check the values being output. I didn't realize I attached a version with a meaningless control...I had a control where the user would put in the stating voltage (the high voltage source has a 1V-100V setting for external control). I've attached this slightly different but equally dysfunctional version. Ideally, I would have liked something like the analog signal generator vi to come with an input wiring for offset on the DC signal. Most of the code was diabled because it is copied from an example; it is largely rubbish. I initially used the DAQ Assistant, but when things weren't working out I switched to putting in each step manually to try to troubleshoot.
As far as HiV step down is concerned, I've tried something different with a nested case structure (if that's the right terminology?), and I've attached that file. I think this problem has been solved, but you never know!
Attachments:
output control slightly different.vi 100 KB
HiV step down w case structures.vi 44 KB -
Need help with andriod system -flash player.
Am using an andriod tablet ZTE with vrsion 4.0 plus as per manufacturer info pamphlet. I have tried to install/ download flash player for this tablet and no luck at all. Can Adobe AIR work well enough to view content on training video presentations even when it says that I need a flash player. I am new to this computer and android stuff and have no luck with help from my teenage kids either. Any info , assistance and guides is super greatly appreciated . Any direct answers can be sent to [email protected] or leave message here and I will check again in the mornings . Thanks for any feedback. Cheers and best regards rickyrem51.
There is no Flash Player for Android anymore, and there won't be another. Android (Google) recommends using a "serverside" browser if you need to view Flash content with an Android device. The recommend "Dolphin" or "Puffin". BOTH are free in the GooglePlay Store.
-
Noob Needs Help with File Size
I created a simple form with no graphics, fonts are not embedded, and I selected the file to be filled out, printed, then mailed. The file size is 21MB. The form is to be emailed so it must be much smaller in size. Once received, the user will fill it out electronicly, print the form, then mail it back to me regular postal mail. Why is the file size so large and how can I make it smaller? Thanks in advance.
KevinOK. Here's what I did:
1. At the welcome screen I selected "New Form" and then "New Blank Form"
2. For the page size I left it at "Default" which is 8.5 x 11.
3. For Return Method I selected "Fill then Print".
4. At the last screen I just clicked "OK".
5. Then I built the form. I put in (9) Text boxes, (4) Text Fields that look like Sunken Boxes, (5) Numeric Fields that look like Sunken Boxes, and (3) Check Boxes that look like Sunken Boxes.
6. I then saved the file as a Static PDF Form File.
7. The file size is 22.5 MB.
That was my second attempt. The first attempt I had the fonts embedded and I had a Logo on the form. The file size for that one was 27.3 MB.
Thanks for the help.
Kevin -
Need help with ink system failure Oxc19a0020
I have followed instructions on HP site for general "ink system failure". I have cleaned printer head and disconnected power and commnunication cables. I have cleaned heads twice and disconnected the cables at least three times. Disconnection has been for a minimum of 60 seconds and as long as several hours. When I restart printer, it goes through it start-up procedure and immediately displays ink system failure with code Oxc19a0020.
HP site does not list this code. HELP!Here is a document that deals with all 0x... errors, just in case you haven't done all the steps:
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00489814&cc=us&dlc=en&lc=en
007OHMSS
I was a support engineer for HP.
If the advice resolved the situation, please mark it as a solution. Thank you. -
Does anyone know the most recent/logical way to transfer a .log (text) file from a server to a client? I've read that if you're reading and writing text files you should use FileRead, FileWriter. Yet other sources show that FileInputStream, FileOutputStream will work. I just want to be sure I'm using the most practical and up-to-date methods. Any advice would be appreciated. This is what I have so far....
Server Code:
import java.io.*;
import java.io.IOException;
public class Transfer
public static void main(String[] args)
try
FileOutputStream output = new FileOutputStream("c:/iqyy.log");
DataOutputStream data_output = new DataOutputStream (output);
data_output.writeChars(String);
data_output.flush();
catch (IOException e)
System.out.println("The following error occurred: "+e.toString());
Client Code:
import java.io.*;
import java.io.IOException;
public class Transfer
public static void main(String[] args)
try
FileInputStream input = new FileInputStream ("c:/iqyy.log");
DataInputStream data_input = new DataInputStream(input);
data_input.readLine();
data_input.close();
catch (IOException e)
System.out.println("The following error occurred: "+e.toString());
System.out.println("Transfer Complete");
}Hi! Have you considered using FTP? I believe that if you run a search for FTP on these fora, you will find several matches. I think you can also download the necessary code from the O'reilly site (http://www.oreilly.com), although I am not absolutely positive.
Hope this helps!
Cheers! -
I need help with File Object in Java
Hello Experts.
I am learning Java 2 now. I have trouble with reading a JTextField and save it to a file. I have some errors that I dont know what they are. I would like someone please help me to write a short sample program to see how it work. The code from the book I have dont execute at all. And I want to use FileOutputStream and ObjectOutputStream. Thank you very much
Quocimport java.io.*;
public class FileTest {
public static void main(String[] arg) throws Exception{
FileOutputStream fileOut = new FileOutputStream("test.txt");
fileOut.write("Test file".getBytes());
fileOut.close(); -
Needed help with Automator - System Prefs
Hi,
I'm hoping to make an automator workflow that changes some system preferences that I have to change frequently in switching between a work computer and media center.
When it's used as a media center it's setup with a lower resolution to match the TV and the energy settings and screensaver are set to never be used when in media center mode.
Is there a way to use automator or even apple script to change the resolution, energy, and screensaver settings back to my normal settings?
I tried using the record option in Automator but it doesn't seem to recognize anything specific at all.
Could someone please help me set this up?See http://discussions.apple.com/thread.jspa?threadID=2039384 and Introduction to Automator tutorial at http://automator.us/leopard/video/index.html
-
Two PC's Connected to WRT54G -Need Help With File Sharing Folder
Hi,
I have both PC's connected to the WRT54G with internet access on. How do I create file sharing and or a folder named "shared" on each desktop that allows each PC to drop files in this folder so that each PC can open and access those files?
JerryFor File and Printer Sharing follow this link
Maybe you are looking for
-
HP OfficeJet 4620 - Can't scan
I am able to print wirelessly but cannot scan, it keeps saying that it can not connect - I beleive it has to do with Web Services. I have connected to the IP of my printer in IE: IPv4 Config: Automatic IP and DNS are selected When I go to webscan on
-
Time compression / expansion
New to Logic Pro, need help. I make commercials and constantly have to time compress or expand voiceovers to fit to the donut length in the music beds. Is there an easy way to accomplish this?? These will be voice audio files, not midi files. Also ho
-
Best approach for Data Modelling.
Hello Experts I am building a Customer Scorecard involving SD and Marketing in BI 7.0. There are a couple of existing DSOs, some pushing the data into InfoCubes and some don't. All the reporting is happening from MultiProvider sitting on top of these
-
How do I create a ringtone from an itunes song on my iphone 4s running io6 and the latest itune update.I have tried all the examples online with no success.
-
Re-editing profile to put my defaults back after a 3rd party update
updated to newer version of DAP download accelerator and the butts at IOBIT edited my profile to carry their pages at homepage and new tabs display whenever i restart firefox 4. how do i put things back (homepage defaulting to my email and tabs defau