How to set a different SUSP character? (job control)
Stopping the foreground job associated with a terminal can be done by typing 'C-z', which is the default special character for suspending or resuming it (using the 'SIGSTOP' signal).
Documentation says:
The functions, data structures, and symbolic constants are all declared in the header file 'termios.h'.
and
17.4.1 Terminal Mode Data Type wrote:The entire collection of attributes of a terminal is stored in a structure of type 'struct termios'. This structure is used with the functions 'tcgetattr' and 'tcsetattr' to read and set the attributes. '
I would like to remap that key but I don't know exactly how to store my new character into TERMIOS.c_cc[VSUSP]. I have no programming background. In various Perl modules I found setcflag() calls:
# (source)
# put current values into Termios structure
$self->{TERMIOS}->setcflag($self->{"C_CFLAG"});
Could someone please guide me to a simplified script I can call in .bashrc? is something like this correct?
$termios->tcsetattr( $hotkey | &POSIX::VSUSP );
I also found this in the ActivePython Docs:
termios.tcgetattr(fd)
Return a list containing the tty attributes for file descriptor fd, as follows: [iflag, oflag, cflag, lflag, ispeed, ospeed, cc] where cc is a list of the tty special characters (each a string of length 1, except the items with indices VMIN and VTIME, which are integers when these fields are defined). The interpretation of the flags and the speeds as well as the indexing in the cc array must be done using the symbolic constants defined in the termios module.
termios.tcsetattr(fd, when, attributes)
Set the tty attributes for file descriptor fd from the attributes, which is a list like the one returned by tcgetattr(). The when argument determines when the attributes are changed: TCSANOW to change immediately, TCSADRAIN to change after transmitting all queued output, or TCSAFLUSH to change after transmitting all queued output and discarding all queued input.
POSIX Standard: 7.1-2 General Terminal Interface, Kernel: 3.18.4-1-ARCH
Last edited by sharethewisdom (2015-02-17 11:07:25)
During import, Designer attempts to match fonts in the PDF file with fonts that are available on your computer. If the file contains an unavailable font, Designer displays a dialog box showing the missing font and a suggested replacement. You can accept the replacement font or change it.
This font substitution is not permanent. Designer must map the unavailable fonts every time the form opens. You can make the font substitution permanent by selecting File > Save As and then selecting Permanently Replace Unavailable Fonts before saving the file. This method is recommended for permanently substituting fonts.
You can also set up a font-substitution table in the file ConvertPDF_FontMap.txt in the Designer installation directory. If you add a font-substitution rule to this file, all occurrences of the substituted font are changed to the new font when you import a PDF, regardless of the font-mapping table and regardless of whether the substituted font is available on your computer.
ConvertPDF_FontMap.txt is empty by default. Each entry you add should have the following syntax:
input_font=Designer_font
where input_font is the name of the font used in the input PDF file, and Designer_font is the name of the font that is installed on your computer. Asterisks (*) represent wildcard characters. For example, the string *Cour* refers to all font names that contain the string Cour. Question marks (?) represent single-character wildcards. Adding wildcard characters before and after the input_font name accounts for any slight variations in the name of the font in the form. For example
*Arial*=Arial
*Helv*=Arial
*Cour*=Courier New
*=Times New Roman
Processing occurs in descending order. The last line in the example converts all remaining fonts to Times New Roman.
Similar Messages
-
How to set up different ring tone for Facetime
how to set up different ring tone for Facetime
I don't think that on an iPhone that FaceTime has a separate setting, you can only set a ringtone (which will apply to phone calls) via Settings > Sounds, or set different tones for different contacts via the Contacts app - but you can't have a separate sound for FaceTime
-
How to set up Dynamic Variants for job which is based on Pay Period
Hi,
We need to set up dynamic variant for payroll interface. This interface is based on Pay periods and that is why we need to use different variant for each month. Letus know how to set up dynamic variant which will take care of Pay PeriodsHi, Thnx for reply.
We are not changing the control records, current period will be some old period in system.
payroll is not processed in SAP, -
How to set up different virtual LANs (using the E3200)?
Hi.
I would like to set up different virtual LANs (using the E3200) so that I can have two different networks that can't access each other.
The E3200 is connected to a modem for internet access.
I would like both networks to have access to the internet.
Does the E3200 alone support creating virtual LANs?
If not, is there another way I can meet the requirement using the E3200 alone (using something other than virtual LANs)?
I'm ultimately thinking that I would need at least one other router.
So for example,
Router A (E3200) is connected to the modem and setup for DHCP using a LAN IP range 192.168.1.1/24.
Router B is connected to Router A and setup for DHCP using a LAN IP range 192.168.2.1/24.
In this way devices connected to Router A should not have access to devices connected to Router B and visa-versa, correct? For example, Device X connected to Router A cannot ping or browse files on Device Y connected to Router B and visa-versa, correct?
Would I need to setup anything else on Router B? For example, do I need to setup DNS settings so that devices connected to Router B can connect to the internet without issue? Would I need to specify that these virtual LANs are not bridged, and on which router, or both?
I already know how to set up a static IP, DHCP, LAN IP ranges, and static DNS settings on a router, etc.
In regards to wireless devices, I am thinking they would follow the same pattern; so wireless devices connected to Router A (E3200) have access to other wired and wireless devices connected to Router A but not to wired or wireless devices connected to Router B and visa-versa. However, if wireless devices currently don't have access to wired devices also connected to Router A, then that is fine for now.
Thank you very much!
-Rami
Solved!
Go to Solution.The E3200 has no VLAN support according to the manual. There's no way to configure two separate networks with this router alone.
You will need to add network electronics.
Ex:
Managed Switch with VLAN
Another wireless router with VLAN
If your modem supplies multiple public or private IP addresses then you could put a switch after the modem and two wireless routers attached to the switch.
Please remember to Kudo those that help you.
Linksys
Communities Technical Support -
Simple question: How to set a different image to each side of a 3D cube?
Hi all,
I'm very new in the use of Java 3D and I would like to know how to set, in a 3D cube, for each side a different image.
Currently I've the code to set an image as texture of the cube, but it applies the same image to all the sides. However, I would like to use different images for each side.
This is my code: http://pastebin.com/sexBx57K
Any clue?
Thanks!I think I worked it out.
I just have to set the JAXP parser
Q. How do I use a different JAXP compatible implementation?
The JAXP 1.1 API allows applications to plug in different JAXP compatible implementations of parsers or XSLT processors. For example, when an application wants to create a new JAXP DocumentBuilderFactory instance, it calls the staic method DocumentBuilderFactory.newInstance(). This causes a search for the name of a concrete subclass of DocumentBuilderFactory using the following order:
1. The value of a system property like javax.xml.parsers.DocumentBuilderFactory if it exists and is accessible.
2. The contents of the file $JAVA_HOME/jre/lib/jaxp.properties if it exists.
3. The Jar Service Provider discovery mechanism specified in the Jar File Specification. A jar file can have a resource (i.e. an embedded file) such as META-INF/services/javax.xml.parsers.DocumentBuilderFactory containing the name of the concrete class to instantiate.
4. The fallback platform default implementation. -
How to set a different default font
Is there a way to set a different font other that Myriad Pro as the default font so that you don't have to continually reset it for every field or label???
During import, Designer attempts to match fonts in the PDF file with fonts that are available on your computer. If the file contains an unavailable font, Designer displays a dialog box showing the missing font and a suggested replacement. You can accept the replacement font or change it.
This font substitution is not permanent. Designer must map the unavailable fonts every time the form opens. You can make the font substitution permanent by selecting File > Save As and then selecting Permanently Replace Unavailable Fonts before saving the file. This method is recommended for permanently substituting fonts.
You can also set up a font-substitution table in the file ConvertPDF_FontMap.txt in the Designer installation directory. If you add a font-substitution rule to this file, all occurrences of the substituted font are changed to the new font when you import a PDF, regardless of the font-mapping table and regardless of whether the substituted font is available on your computer.
ConvertPDF_FontMap.txt is empty by default. Each entry you add should have the following syntax:
input_font=Designer_font
where input_font is the name of the font used in the input PDF file, and Designer_font is the name of the font that is installed on your computer. Asterisks (*) represent wildcard characters. For example, the string *Cour* refers to all font names that contain the string Cour. Question marks (?) represent single-character wildcards. Adding wildcard characters before and after the input_font name accounts for any slight variations in the name of the font in the form. For example
*Arial*=Arial
*Helv*=Arial
*Cour*=Courier New
*=Times New Roman
Processing occurs in descending order. The last line in the example converts all remaining fonts to Times New Roman. -
How to set two different welcome-file to different servlets in web.xml
Hi friends,
Can some one help with web.xml file
I have to different servlets in applications.
I want to set two different welcome files for my two different
servlets in web.xml
Please, can some one give me sample code to achieve this.
Here web.xml code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>reports</servlet-name>
<servlet-class>com.caremark.ivr.servlet.IvrReportsServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>reports</servlet-name>
<url-pattern>/reports</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>reportsindex.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>calldetails</servlet-name>
<servlet-class>com.caremark.ivr.servlet.IvrCallDetailsServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>calldetails</servlet-name>
<url-pattern>/calldetails</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>calldetailsindex.jsp</welcome-file>
</welcome-file-list>
</web-app>
I need this fix immediately. Your help will be really appreciated. Thanks in advance.First of all, my understanding is that you need to have a Servlet 2.4 complaint server to do this...Given that, you're supposed to be able to simply specify the Name of the servlet as the welcome-file to get it to work. For example:
Your servlet section:
<servlet>
<servlet-name>Controller</servlet-name>
<servlet-class>com.company.ControllerServlet</servlet-class>
</servlet>Now you would add the following to your welcome file list:
<welcome-file-list>
<welcome-file>Controller</welcome-file>
</welcome-file-list>Note that you use the servlet-name value from the servlet definition, NOT the url-mapping from the servlet-mapping section.
Please note that I cannot verify this as I am running a 2.3 server at home. When I get to work Friday I can test on a 2.4 machine. However this shouldn't take you more than a minute to test.
Note that I did try this on the 2.3 compliant server and it did NOT work (as I expected)...
HTH. -
How to set a program into backgroud job
hi experts,i want to set a program into backgroud job.
the original code like this:
...some statements...
PERFORM FRM_SEND_MAIL USING WA_YA_LX.
...some statements...
i want to set 'PERFORM FRM_SEND_MAIL USING WA_YA_LX.' into background job.
is that code like this?
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = WA_TBTCJOB-JOBNAME
JOBCLASS = 'A'
IMPORTING
JOBCOUNT = WA_TBTCJOB-JOBCOUNT.
PERFORM FRM_SEND_MAIL USING WA_YA_LX.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = WA_TBTCJOB-JOBCOUNT
JOBNAME = WA_TBTCJOB-JOBNAME
SDLSTRTDT = SY-DATUM
SDLSTRTTM = WA_TBTCJOB-SDLSTRTTM .
hunger for you advice,thanks a lot.See the following simple prog to schedule in background.
You cannot schedule the subroutine i.e perform to run in background job. Instead write the subroutine in another program.
to pass any value to that program, declare selection screen parameter and pass the value from the first one using submit.
Job open
call function 'JOB_OPEN'
exporting
delanfrep = ' '
jobgroup = ' '
jobname = jobname
*sdlstrtdt = sy-datum
*sdlstrttm = sy-uzeit
importing
jobcount = jobcount
exceptions
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
if sy-subrc ne 0.
write:/ 'error in opening a job'.
endif.
Insert process into job
SUBMIT ZSDQ_BCK_TEST
and return
with p_type = 'F' "Selection screen Parameter
user sy-uname
via job jobname
number jobcount.
if sy-subrc > 0.
WRITE:/ 'ERROR PROCESSING JOB'.
endif.
Close job
call function 'JOB_CLOSE'
exporting
*event_id = starttime-eventid
*event_param = starttime-eventparm
*event_periodic = starttime-periodic
jobcount = jobcount
jobname = jobname
*laststrtdt = starttime-laststrtdt
*laststrttm = starttime-laststrttm
*prddays = 1
*prdhours = 0
*prdmins = 0
*prdmonths = 0
*prdweeks = 0
*sdlstrtdt = sdlstrtdt
*sdlstrttm = sdlstrttm
strtimmed = 'X'
*targetsystem = host
RECIPIENT_OBJ = RECIPIENT_OBJ
exceptions
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
others = 99.
***This is the second program which will run in background
REPORT ZSDQ_BCK_TEST .
TYPES: BEGIN OF TY_ADRC,
HOUSE_NUM1 LIKE ADRC-HOUSE_NUM1,
NAME3 LIKE ADRC-NAME3,
NAME4 LIKE ADRC-NAME4,
LOCATION LIKE ADRC-LOCATION,
END OF TY_ADRC.
DATA: IT_ADRC TYPE STANDARD TABLE OF TY_ADRC WITH HEADER LINE.
Parameters: p_type type c.
START-OF-SELECTION.
SELECT HOUSE_NUM1
NAME3
NAME4
LOCATION
UP TO 40000 rows
FROM ADRC
INTO TABLE IT_ADRC.
WHERE ADDRNUMBER = '0000022423'.
IF SY-SUBRC = 0.
LOOP AT IT_ADRC.
WRITE:/ IT_ADRC-HOUSE_NUM1, IT_ADRC-NAME3.
ENDLOOP.
write:/ p_type.
ENDIF. -
How to set the source property of image control dynamically?
Hi,
I have different fxg files which I want to display in a list. For each row in the List, I define which fxg file to be displayed in my database.
I need to know how to set the image1.source = (the fxg path) as a string from database?
Is there any conversion needed in this case? If so, can you please help me how to do this?Hi,
Thank you for your response. I am new to Adobe Flash Builder, Flex and action script. I don't get your answer straight away.
What I basically need is, I need to set image1.source = strFXG. Right now, this does not show the image. I don't understand fxgObject.pathid.source => how to give this?
Moreover, when I did google search, there is somethink like fxg converter which converts the fxg to a component. I thought this is a very simple problem on how to convert the fxg string to an object format. But now, it looks like it might be a big problem. Can anyone help me in this?
import spark.components.Image;
protected function view1_creationCompleteHandler(event:FlexEvent):void
// TODO Auto-generated method stub
var strFXG:String = 'assets.DB_Actief_Graphics';
var image1:Image = new Image();
image1.x = 100;
image1.y = 100;
image1.source = strFXG;
addElement(image1);
Regards,
Chella -
How to set a HTML color to a control button
How to set a fixed color to a disabled button?
I have a boolean button which has 3 status: on, off and disabled. I don't like the 'grayed and disabled' option. I will use red for off, green for on, and white gray (foreground color) for the disabled status. The HTML color code is BDBDBD. I tried to send the hex number 'BDBDBD' to the button property node 'color[4]' but was told that I was wiring to the wrong type of terminal.
Could any one post a sample code of how to construct the structure of 'color[4]' using a RRGGBB number?
Thanks,
RyanWhat exectly do you want and do you see.
If I run the code you have in LabVIEW 9.0, I get the following result after running.
For convenience I have shown the second color array you set as color indicators:
Note that you use grey as the colors for True and False
Here I have set made the colors more distinct:
Ton
Message Edited by TCPlomp on 07-10-2009 08:00 AM
Message Edited by TCPlomp on 07-10-2009 08:01 AM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Attachments:
ButtonColor_FP.png 17 KB
ButtonColorMoreColor_FP.png 18 KB -
How to set a different parser for JAXB ?
from the FAQ https://jaxb.dev.java.net/faq/index.html
A question about which jars are required says
"The runtime also needs a JAXP-compliant parser. If your target environment is
JRE 1.4 or higher , it is a part of JRE, so you don't need any more jar file.
Otherwise you have to bundle a parser, too. Any parser would do the job, but we
recommend the JAXP RI bundled in the JWSDP (which is what we test against.) "
I am running jdk1.3 and want to use a different parser how do I specify it.
Thanks
SteveI think I worked it out.
I just have to set the JAXP parser
Q. How do I use a different JAXP compatible implementation?
The JAXP 1.1 API allows applications to plug in different JAXP compatible implementations of parsers or XSLT processors. For example, when an application wants to create a new JAXP DocumentBuilderFactory instance, it calls the staic method DocumentBuilderFactory.newInstance(). This causes a search for the name of a concrete subclass of DocumentBuilderFactory using the following order:
1. The value of a system property like javax.xml.parsers.DocumentBuilderFactory if it exists and is accessible.
2. The contents of the file $JAVA_HOME/jre/lib/jaxp.properties if it exists.
3. The Jar Service Provider discovery mechanism specified in the Jar File Specification. A jar file can have a resource (i.e. an embedded file) such as META-INF/services/javax.xml.parsers.DocumentBuilderFactory containing the name of the concrete class to instantiate.
4. The fallback platform default implementation. -
How to set up different realms for each server ?
I am using weblogic 6 sp1.I have a domain with several servers. i want to assoicate or use different custom security realm for each server.However -on weblogic console- there is no 'Target' tab in the Security node ,and no way to set up multiple Security nodes.How ca i do this (or can i)?
Main reason why is this:
Imagine situation I have 2 servers A and B both of them bellongs to domain SomeDomain.
Server A is as WebServer and server B hosts all EJBs. And server A is outside
firewall (does not have DB access). But i would like to use RDBMS realm so what
to do in this situation. Place both servers in different domains and in server
A install proxy realm for RDBS realm ?
"Tom Moreau" <[email protected]> wrote:
>
You can't have a different realm for each
server. There is only one realm for all
servers - think of it as there is only
one set of authentication & authorization
information (that is users/groups/permissions)
and it applies to all servers.
Why do you want each server to have its
own realm? If someone tries to log in,
do you want WLS to automatically route
them to a server who is capable of logging
them in? I'm having trouble understanding
why you want this feature.
Thanks,
-Tom Moreau
Rachel <[email protected]> wrote:
I am using weblogic 6 sp1.I have a domain with several servers. i want
to assoicate or use different custom security realm for each server.However
-on weblogic console- there is no 'Target' tab in the Security node
,and no way to set up multiple Security nodes.How ca i do this (or can
i)? -
How to set two different logon pages for a portal
Hi experts,
I have 2 different URLs for the same portal.
i am trying to set up 2 different logon pages for these two.
How to achieve this . Could u please tell me which files i have to change inside the logon par .
Thanks in advance,
JohnJohn,
Please check this threads,
Logon Page Customization Based on URL
Two Urls for the same portal server
Ram -
JSpinner with SpinnerDateModel - how to set a different Locale?
I wonder, how I can get my JSpinner to display dates in some different Locale.
I tried UIManager.getDefaults().setDefaultLocale(...) and spinner.setLocale(...) and ((JSpinner.DateEditor)spinner.getEditor()).setLocale(...) and ((JSpinner.DateEditor)spinner.getEditor()).getTextField.setLocale(...) but without any effect.
??? "Lost in Swing" ???* Set the same DateEditor properties
* for each spinner.
* @param dateEditor
* @param pattern
public void setFormattedDateEditorTextField(JSpinner.DateEditor dateEditor, String pattern) {
JFormattedTextField jFormattedTextField = dateEditor.getTextField();
jFormattedTextField.setEditable(false);
jFormattedTextField.setPreferredSize(new Dimension(130, 15));
jFormattedTextField.setHorizontalAlignment(JFormattedTextField.RIGHT);
//setFontSyleProperties((Component)jFormattedTextField);
jFormattedTextField.setLocale(getSpecifiedLocale());
DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.DEFAULT, getSpecifiedLocale());
((SimpleDateFormat)dateFormat).applyPattern(pattern);
((DateFormatter)jFormattedTextField.getFormatter()).setFormat(dateFormat);
jFormattedTextField.getFormatterFactory().getFormatter(jFormattedTextField).install(jFormattedTextField);
} -
How to set up2 different phones to 1 itunes
how can i set up 2 different iphones to 1 itunes?
Plug them in, select them in iTunes and select the tabs across top and select what you want to sync to each iPhone.
Maybe you are looking for
-
IPad Air with iOS 8.02 freezes and blue screen appears. What should be done ? Why is this happening ?
-
About Communication Channel Parameters
What is Variable substitution (target dir/filename scheme) parameter, Run OS command before Message processing and Run OS command after Message processing parameters in the Communication Channel, where we can use this parameters(i.e which type of sce
-
Find the Table of Content in Pdf
Hi, How can i find the Table of Content in a particular PDF?. Is this possible in itext? Thanks, nithi.
-
Migrate content from Gateway server 2.0 to NW 7.4
Hi All, We have a migration planned with our client. In the current situation, there is a separate Gateway server 2.0 on NW 7.02 system. On this gateway server custom developments are done. Now we have to move to cloud solutions where the server avai
-
This isn't a computer question, but I know there are smart people out there who might be able to help me. My less than 2 year old Epson CX4200 prints blank pages. Foolishly, I didn't use it very often, and used cheap ink. I've tried the nozzle check