Dialer map - long string
I am trying to use dialer string:
dialer map ip 10.216.254.156 name woodstock modem-script async "1234567"
The problem is, I am trying to use calling card to dial first, and using commas for pauses to enter pin and number. I listen to line with set and it is dialing numbers correctly and phone card accepts them, but it appears that the modem drops the line right before it starts to ring, like it is timing out because it hears no dialtone in a certain amount of time, is there anyway to extend this? I have the following command set
chat-script async "" "AT" OK "ATDT\T" TIMEOUT 120 CONNECT \c
but it hangs up before 120 seconds?
How long will the call drop ? 30sec ?
Try to use "dialer wait-for-carrier-time" under interface.
Check below :
http://www.cisco.com/en/US/products/ps6350/products_command_reference_chapter09186a0080443780.html
Hope this helps.
Similar Messages
-
ImmutableArrayList default for Map Long, Collection String
Hi,
There are a few topics out there about the com.tangosol.util.ImmutableArrayList default, but the actual fix still seems a bit unclear to me.
In my example there is a Map with each entry containing a Collection of Strings (i.e. Map<Long, Collection<String>>). Objects will be placed in the Map as ArrayLists, but they seem to come out as ImmutableArrayLists.
The Oracle site mentions wrapping the Collection (http://extranet.tangosol.com/display/COH35UG/Best+Practices+for+Coherence+Extend).
There is another Oracle forum post that suggests using more general classes (List instead of ArrayList). (Serialize an ArrayList<ArrayList>
It seems like you have to make a new collection anytime you wish to reserialize the object. Is there a better way?
Thanks for taking the time,
MikeThis problem comes up for us when persisting documents. We are torn between saving as XML vice saving a normalized object model or something else: like your database solution.
Since you have already designed the database, then you can reverse out the TopLink class from that database design in the mapping workbench. You then have to perform a transform in the middle tier to extract your business model.
Alternatively, if you want your business model to map via ORM to the data model, then you would have a database design that more closely maps the business model design then you get three tables:
TopLevel
Integer primaryKey; //This table may just have the PK
SetMap theSets;
SetMap
TopLevel parent; //FK to the Parent table
Long primaryKey; //Assumes the Longs are globally unique. If not, the PK will include the parent
SetList theSet;
SetList
SepMap parent; //Part of PK. This can get complicated if the PK migrates all the way from TopLevel. We insert a surrogate key at this point.
String setMember; //Rest of PK
The database constraints ensure that the SetList is unique. The equivalent string may exist in different SetMaps, but may not be duplicated for a particular parent. -
How to find out if a long String has a "subString" twice or more.
I need to find out if a long String has the same number twice or more.
I need to look matches for numbers running from 000, 001....999 and if a number is found twice or more, return that number and lines there were found.
example String:
-;000 ; 1 ; 2006-12-11 ; -; job;
x;001 ; 2 ; 2006-12-11 ; 2006-12-12; do this
-;002 ; 3 ; 2006-12-11 ; -; work
-;003 ; 0 ; 2006-12-11 ; -; some
-;004 ; 2 ; 2006-12-11 ; -; thing
x;005 ; 1 ; 2006-12-11 ; 2006-12-11; reads
-;003 ; 0 ; 2006-12-11 ; -; here
Should return from example String:
003 at lines 4 and 7
Any ideas?So there are newlines in the String?
You could use a StringTokenizer to break the String into lines, then searching on each line if it contains any of the search strings. (You need to clarify if a line can contain more than one search string).
Probably you should use a Map<String, Integer> to record the searchcounts.
Or an int[] Array if you are really sure that the Strings you search for really are numbers.
Another option is to use:
LineNumberReader lnr = new LineNumberReader(new StringReader(searchString));This will save you from explicitly having to take care for the line number.
In any case your example looks like the individual lines are semicolon separated fields and the numbers you search for always are in column two.
So after breaking up the original String in lines, you could use another StringTokenizer to break up the line in fields. -
oms_error Message:[oms] empty or null xml map request string.
I'm using mapviewer. I create a stored procedure in oracle that uses the utl_http package to make the map request. The omserver response with an error but when i make a map request via internet explorer the server response its ok and show me the correspondent map. This is my pl/sql code it fails in this line:
UTL_HTTP.SET_HEADER(l_http_req, 'Content-Type', 'application/x-www-form-urlencoded');
UTL_HTTP.SET_HEADER(l_http_req, 'Content-Lenght', LENGTH(map_request));
UTL_HTTP.SET_HEADER(l_http_req, 'Host', 'cobogis09');
UTL_HTTP.SET_HEADER(l_http_req, 'Port', '8888');
As you can see it tells to me that the map request string is empty but im sending the map request in the next way:
UTL_HTTP.WRITE_TEXT(l_http_req, '<?xml version="1.0" encoding="UTF-8"?><map_request datasource="stream" srid="8307" basemap="" width="960" height="768" antialiasing="false" format="GIF_URL" title="Demonstration"></map_request>');
l_http_resp := utl_http.get_response(l_http_req);
utl_http.read_text(l_http_resp, l_value);
response := sys.XMLTYPE.createxml(l_value);
utl_http.end_response(l_http_resp);
img_url := response.EXTRACT('/map_response/map_image/map_content/@url').getstringval();
img_url := response.EXTRACT('/map_response/map_image/map_content/@url').getstringval();
obviously because the server response its not ok
the server response is (i get this message in my l_value variable):
<?xml version="1.0" encoding="UTF-8"?><oms_error>Message:[oms] empty or null xml map request string.
Tue Jul 25 10:37:43 GMT-05:00 2006
Severity: 0
Description:
at oracle.lbs.mapserver.oms.getXMLDocument(oms.java:860)
at oracle.lbs.mapserver.oms.doPost(oms.java:303)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:595)
</oms_error>
What i want to know its why the server says that the map request string is empty. As you can see the map request is not empty, but when i send to the server something happens that sends this map request string empty to the server.
The next is the console of the omserver:
C:\oc4j_extended>cd\
C:\>cd C:\oc4j_extended\j2ee\home
C:\oc4j_extended\j2ee\home>java -hotspot -Xmx512M -jar oc4j.jar
06/07/25 11:00:49 INFO [oracle.lbs.mapserver.oms] oms root path: C:\oc4j_extended\j2ee\home\lbs\mapviewer\web\
06/07/25 11:00:49 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) initialized
06/07/25 11:00:49 INFO [oracle.lbs.mapserver.core.MapperConfig] using default config file: C:\oc4j_extended\j2ee\home\lbs\mapviewer\web\WEB-INF\conf\mapViewerConfig.xml
06/07/25 11:00:49 WARN [oracle.lbs.mapserver.core.MapperPool] destroying ALL mapmaker instances.
06/07/25 11:00:50 INFO [oracle.lbs.mapserver.core.MapperConfig] setting logging level to finest
06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 INFO [oracle.sdovis.CacheMgr2] In memory cache limit set to: 512MB
06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 INFO [oracle.lbs.mapserver.core.MapperConfig] Disk-based cache is no longer supported.
06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 INFO [oracle.lbs.mapserver.core.MapperConfig] setting proxy to: coboisa01.ag.ad.local:8080
06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 FINEST [oracle.lbs.mapserver.core.MapperConfig]
Allowed IPs:
Excluded IPs:
06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 ERROR [oracle.lbs.mapserver.core.MapperConfig] ###### [MapperConfig] clear-text passwords in the mapViewrConfig.xml file must be prefixed with a '!' (exclamation mark).
06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 INFO [oracle.lbs.mapserver.core.MapperConfig] Map Recycling thread started.
06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 INFO [oracle.lbs.mapserver.oms] *** Oracle MapViewer started. ***
06/07/25 11:01:03 Tue Jul 25 11:01:03 GMT-05:00 2006 FINEST [oracle.lbs.mapserver.oms] request.getRemoteUser = jazn.com/admin
06/07/25 11:01:03 Tue Jul 25 11:01:03 GMT-05:00 2006 FINEST [oracle.lbs.mapserver.oms] request= <?xml version="1.0" standalone="yes"?>
<non_map_request>
<add_data_source name="stream"
jdbc_host="cobodata01"
jdbc_sid="stream"
jdbc_port="1521"
jdbc_user="***"
jdbc_password="***"
jdbc_mode="thin"
number_of_mappers="3"/>
</non_map_request>
06/07/25 11:01:03 Tue Jul 25 11:01:03 GMT-05:00 2006 FINEST [oracle.lbs.mapserver.oms] getRequestType: nodeName=add_data_source
06/07/25 11:01:03 Tue Jul 25 11:01:03 GMT-05:00 2006 INFO [oracle.lbs.mapserver.MapServerImpl] adding a map data src [name=stream]
06/07/25 11:01:05 Tue Jul 25 11:01:05 GMT-05:00 2006 FINEST [oracle.sdovis.SRS] loaded 748 geodetic srids.
06/07/25 11:01:05 Tue Jul 25 11:01:05 GMT-05:00 2006 INFO [oracle.sdovis.CacheMgr2] Spatial Data Cache opened. Region=SDOVIS_DATA.
06/07/25 11:01:05 Tue Jul 25 11:01:05 GMT-05:00 2006 INFO [oracle.sdovis.CacheMgr2] max_cache_size=512 MB.
06/07/25 11:01:05 Tue Jul 25 11:01:05 GMT-05:00 2006 INFO [oracle.sdovis.CacheMgr2] sub region sdovis_subreg_gis_jdbc:oracle:thin:@cobodata01:1521:stream created in cache.
06/07/25 11:01:05 Tue Jul 25 11:01:05 GMT-05:00 2006 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper instance to the pool [data src=stream]
06/07/25 11:01:05 Tue Jul 25 11:01:05 GMT-05:00 2006 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper instance to the pool [data src=stream]
06/07/25 11:01:06 Tue Jul 25 11:01:06 GMT-05:00 2006 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper instance to the pool [data src=stream]
06/07/25 11:01:36 Tue Jul 25 11:01:36 GMT-05:00 2006 FINEST [oracle.lbs.mapserver.oms] request.getRemoteUser = null
06/07/25 11:01:36 Tue Jul 25 11:01:36 GMT-05:00 2006 FINEST [oracle.lbs.mapserver.oms] request= null
As you can see the arrive empty to the server, what can be wrongHi,
in this map request, it looks that the basemap string is empty.
UTL_HTTP.WRITE_TEXT(l_http_req, '<?xml version="1.0" encoding="UTF-8"?><map_request datasource="stream" srid="8307" basemap="" width="960" height="768" antialiasing="false" format="GIF_URL" title="Demonstration"></map_request>'); -
Is there an easy way to convert a long string into an array?
I can convert a long string into a 1-d array by parsing and using build array, but I would like to know if there is a function to make this easier.
For example:
from/ aaaaaaaabbbbbbbbccccccccdddddddd (string of ascii)
to/ an array that is 1-d with each element having eight characters
aaaaaaaa
bbbbbbbb
cccccccc
dddddddd
Thank you.
Solved!
Go to Solution.Try something like this:
(If you can guarantee that the string length is an integer multiple of 8, you an drop the two triangular modes in the upper left. )
Message Edited by altenbach on 03-14-2010 06:40 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
ChopString.png 9 KB -
Inserting long string into Oracle
When my code inserts about 5K character into a table, I got an error message saying that the Oracle could only handle 4K character. I am currently looking at LOB but havn't had a clear idea yet. Could someone give me some help on this? According to the sample code, I will have to use Oracle JDBC driver for LOB. But we are using BEA's Kona driver for all JDBC connections. Is there an easy way to insert long string?
hii
nams u solve ur problem using setCharacterStream method
but it does't work if the string more than 4000 char
raises "java.sql.SQLException: Protocol violation"
here's the code
PreparedStatement ps = con.prepareStatement( "UPDATE candidate SET cv_new = ?");
StringReader cvReader=new StringReader(cv_new);
int abc=cv_new.length();
ps.setCharacterStream( 1, cvReader, abc);
ps.executeUpdate();
is that any problem in that code or it's a jdbc driver broblem ??
i'm using classes 12.zip
thanks -
In report layout, can format a long string display as Column mode?
Hi,
Just want to check in report builder any way can format a long string into a column mode?
Example: I have a field to hold 8000 character, and would like to print
30 character in each line, when reach 50 line, then print in column i/o to print next page?
Any idea ? Thanks a lot if you can share your experience with me.
best Regards,
Klnghauhi let say your field name is x
then if your want it word wrap then it's simple just get one field and make it's vertical
elasticity variable. and asign the field to it..
but if you want your field to be displayed as
first colunm and then beside continuation of that column but in 2nd one...
then create 2 formula columns make your field legth been distributed half in each.
so cf_1 is:
decalre
t varchar2(1510);
begin
if length(:x) > 1500
t := substr(x, 1, 1500); -- as 30 x 50 = 1500
else
t := :x;
end if;
return t;
so cf_2 is:
decalre
t varchar2(1510);
begin
if length(:x) > 1500
t := substr(x, 1500, length(:x)-1500); -- as 30 x 50 = 1500
else
t := '';
end if;
return t;
and then in design view
field1 field2
for field1 source is cf_1 and
for field2 source is cf_2
that's all
Enjoy Oracle... -
Problem in displaying long string in JTextField
Hi All,
I got problem in displaying long String in JtextField. It does center alignment & I can see middle part of string where length of JTextfield is 6 char. How can I do left alignement so that I can see starting 6 character?
--Harishyou may try this:
yourTextFieldName.setHorizontalAlignment(JTextField.LEFT);
or
yourTextFieldName.setHorizontalAlignment(JTextField.LEADING);
hth. -
The email I receive from OWA has no line breaks, it is all one long string. This is creating a big problem when I forward the emails received with my BB as they are difficult to read by the recipient. Is there anyway to correct this? I use BIS and access my work email via OWA. I also have a separate personal email set up with no problems with the email I receive or send.
BB Curve 8310 v4.5.0.55
OWA v5.5 SP4
Any help will be appreciated!I'm experiencing the same issue (no line breaks) when pasting rows directly from Excel (2008 & 2011) into a Flex TextArea on a Mac. However, when pasting the exact same data from a Windows Excel spreadsheet, it contains the line breaks.
From Mac: Customer\tPhoneCustomer 1\t555-555-5555Customer 2\t555-555-5556
From Windows: Customer\tPhone\rCustomer 1\t555-555-5555\rCustomer 2\t555-555-5556\r
This appears to be a bug in a flash.display class as pasting the data from Excel to a text editor and then copying/pasting into the same Flex TextArea preserves the original line breaks.
Has anyone figured out a work around? -
When I forward an e-mail, I get a long string of gobblygook that goes with it and I cannot figure out how to eliminate it without having to delete it every time I forward an e-mail. The following is only part of the string that I am talking about. How can I eliminate this from the e-mail?
Here is part of an excerpt from one of the strings:
From: - Mon Aug 19 18:12:47 2013
X-Account-Key: account1
X-UIDL: 065B31352CC6B3C0789DEA7954395B55
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Return-Path: <[email protected]>
Received: from hrndva-mxlb.mail.rr.com ([10.128.255.126]) by hrndva-imta07.mail.rr.com with ESMTP id <20130819211326470.DBUO12525@hrndva-X-Roving-StreamId: 0Sorry, Firefox doesn't do email, it's strictly a web browser.
If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
If your problem is with Mozilla Thunderbird, see this forum for support.
[https://support.mozillamessaging.com/en-US/home] <br />
or this one <br />
[http://forums.mozillazine.org/viewforum.php?f=39] -
How can I copy a long string of texts from my iPhone 4s to a word document?
I need to copy a long string of texts to a word document on my PC.
One method would be to use 3rd party software. The following is one example but there may be better/cheaper or even free options: http://www.wideanglesoftware.com/touchcopy/
-
I have an editable combo box that I'm sticking in a compact spring layout. The problem is if you use a list that contains very long strings (like a long hex string), the combo box sizes itself to fit it and all the other controls are made to be that length as well. Is there a way to stop the control from becoming so long, like a horizontal scroll bar in the list?
Read this [url http://www.objects.com.au/java/examples/src/examples/SteppedComboBoxExample.java]example
Here's its [url http://www.objects.com.au/java/examples/swing/SteppedComboBox.do]picture
ICE -
How to indent the 2nd line of a long string?
Hi all,
I would like to achieve something like below where the 2nd line will be indented automatically. How to do format this in Oracle Report? The "<--indent-->" below is to illustrate the indentation, which I can't show in this posting as the formatting is not supported.
Okuda, M., & Okuda, D. (1993). Star Trek chronology: The history of the
<--indent--->future. New York: Pocket Books.
Please advise.
Thank you.Yes, chr(10) can make the string break to next line, but that cannot fulfill my requirement.
What I need is a single long string that will automatically get indented for the 2nd line onwards when display in report.
I can't use chr(10) because I won't know when to break to next line because it does not have fixed rule that after which part should I break it to next line. I'm referring to bibliographic citation that normally display as indented for the 2nd line.
Hope you got what I mean. -
GP - How to display a long string value
I'm trying to display a really long string value and then allow the user a couple of result state choices (to either go back and do another search or finish).
None of the forms (WD, display, etc.) will display a really long string.
I tried using a loop type decision dialog, but there doesn't appear to be a way of having it pick up a parameter value as the message (or part of the message) to display.
I can get it to display in the complex type decision dialog, but I don't need the group/options and I can't seem to get rid of the second set of buttons that show up (the long string parameter value was put into the 'Info Texts' area and does display ok).
Is there any easy way of displaying the complete contents of a long string value and have buttons for results states? I'd even be happy if I could just display the whole string and use a separate callable object for the choices.
Thanks,
CindyI think you should try calling a JAVA or ABAP Webdynpro as the callable object. As you know, we can display long texts in the webdynpro fields. Other alternative is an Adobe form as well.
Cheers,
Mandrake -
Automatic trim of too long strings
Hi,
if I try to insert a too long string value into a VARCHAR column, I get the error ORA-12899.
Is it possible to set the Oracle database so that too long strings get trimmed automatically?
Thank you.Hi,
Welcome to the forum!
Unfortunately, there's nothing quite like what you want in Oracle.
Even if you write a trigger to cut off the excess, you can still get the ORA-12899 error. For example, if table_x.col_1 is defined as VARCHAR2 (10), this statement:
INSERT INTO table_x (col_1) VALUES ('ABCDEFGHIJKLMNOP');will get the error, even if you have a trigger that says
:NEW.col_1 := SUBSTR (:NEW.col_1, 1, 10);You could define col_1 as VARCHAR2 (4000), and have a trigger that includes the statement show above, to make sure that the actual values will be 10 characters or less. You cound even have a CHECK constraint (LENGH (col_1) <= 10).
Think carefully about what Someoneelse said. Do you really want to throw away part of what users enter, automatically and without any warning? Will that cause confusion?
Maybe you are looking for
-
Few questions about partitioning and formatting in Windows 8
Hello, I'm very shortly after a Windows 8 reinstall and I want to make use of this moment to finally understand partitioning and formatting in Windows 8. Before using Windows 8, I was an XP user for 5 years and I actually never bothered myself with f
-
Mac boot issue; gray screen, spinning wheel, and progress bar
Recently I shut down my Mac only to find when I tried turning it back on it was very slow and unresponsive. I proceeded to shut down a couple more times and this resulted in a gray screen upon startup with a spinning wheel, apple logo, and a progress
-
Is there a way I can see the status of a running stored procedure?
I have a stored procedure that takes quite a bit of time and I was wondering if there is a way I can monitor it's status? Thanks!
-
Query on use of "ub2 *rcodep" parameter of OCIDefineByPos function
Hi friends, Not sure if this is the correct forum for questions about OCI. If not, my apologies. Can you please guide me which is the correct forum for OCI? Though, if you know can you pls guide me about this query. I am using OCI library in my appli
-
Cluster resource ' Disk Name' of type 'Physical Disk' in clustered role 'Role Name' failed.
We have been observing issues with our file Cluster (Windows Server 2012 R2 Std Clustered with 2 Nodes) where File Server gets unresponsive for SMB access request event id 30809 in Microsoft-Windows-SMBClient/Connectivity is observed and when we try