Strange behavior in URxvt - charactes remain on screen (Incl. Scrot)
I'm using Arch with Openbox.
Compton as composite manager, ẅith the open source Xf86-video-ati driver,
URxvt as terminal emulator (with the perl extension collection, more specifically tabbedex,default,keyboard-select,url-select,clipboard,matcher)
and zsh with Oh-My-Zsh as shell.
Recently switched to Arch from Ubuntu, and I'm loving it. But as the topic says, I'm getting some strange behaviors while using URxvt. If I type a command into the terminal, using tab-completetion as i usually do, and then delete some character or press tab again, in about 50% of the cases some characters from the previous command remain on the command line. Also, if I type in for example 'sudo tail -f /var/log', and delete the entire line, the 'S' letter will persistantly remain after my prompt, making the next command 'ssudo'. Other times, the '/' might remain stuck from the '/var/log' part, as shown in the screenshot.
Tried my best to reproduce the problem for a screenshot, so see the image below, the two upmost terminals for an example of what it usually looks like.
Could anybody help me out finding out the cause of this problem? Is it related to zsh, urxvt or the graphics driver?
jasonwryan wrote:Does it happen without Oh-my-zsh? It is likely your prompt (with incorrect or missing escapes) or you are exporting your term.
How would I check the prompt for missing escapes? Haven't tried not using Oh-My-Zsh, would rather fix it if that's the problem.
My current prompt/Oh-My-Zsh-theme:
PROMPT='[%{$fg_bold[white]%}%n%{$reset_color%}@%{$fg_bold[red]%}%m%{$reset_color%} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)%{$reset_color%}]$ '
ZSH_THEME_GIT_PROMPT_PREFIX="(%{$fg_bold[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%} %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%}"
Thank you for your time
Last edited by heroinsunrise (2014-10-13 08:28:14)
Similar Messages
-
Strange behavior (disappearing buttons, tabs, and more)
Very recently (within the past 3 days and long after installing 10.4.9) Safari on my iMac G5 has been exhibiting very strange behavior.
Some of the symptoms:
- crashes frequently for no apparent reason
- toolbar loses buttons and/or buttons are there but don't react to mouse clicks; sometimes a standard button, like forward, will simply disappear while backward remains
- text in URL field will become 'bolded' and sometimes difficult to read/blurry
- tabs often lose their dividing line boundaries
- auto entries usually not present
I have erased the preference list for Safari in my user library and repaired my permissions without any success.
Any suggestions?
Thank you very much for any help.Hi
Please post a crash report - when Safari crashes, the "quit" panel has a "report" button. Select it, then copy/paste the entire contents to your reply.
While you are at it, try the site from another User Account. If you need to create a new account, please follow these steps:
Here is guidance from Apple on how to set up the account. You can ignore step 7 in the article.
Also, on the system preference>Accounts panel, click on "log-in" options. There, select "fast user switching". This allows you to go back and forth between user accounts via an icon in your Menu Bar at the top of the computer screen.
Log-on to the new account and start Safari. If Safari is stable in the new account, then your problem is specific to your regular user account. Otherwise, similar response means a system-wide problem.
Post back with results. -
Strange behavior while plugged in
Hi,
my X1 compact shows a strange behavior since yesterday:
I plugged it in via the USB port for charging, and it started doing crazy things. Screen brightness went flashing from low to high and back, the touchscreen showed slow or no response to pushing buttons, everything got laggy as if some kind of process was running in the background with no end. When I unplug it, it basically works normally. But - from this time on, I couldn't charge it anymore, as the charge went down instead of up when plugged in! I tried a factory reset several times (power + volume up for 3 seconds), and although it did reset, the charging problem remained. I left it turned off for one night while plugged in, and in the morning, it was just charged to 25% with the charge going down rapidly in the first couple of minutes (after 5 minutes to 11%). Now it's at 1%, but I can use it for quite a while, indicating that the displayed charge certainly isn't correct.
When I plug it in, the same things happen again and again. When plugged in, I can't even enter the PIN correctly, because touchscreen input is somehow recognized falsely.
What could that be, what could I do??
AleksI'd like to, but... now it's gone from 1% to dead, and I can't bring it back to life, whether plugged in or not!
When it's plugged in, the red charging light doesn't even come up. When I hard reset it, it just vibrates as it should, but no charging light whatsoever. When I unplug it and try to start it, the red light just flashes three times.
Now I'll just try to leave it plugged in for some time, in hope that there will be enough charge to try to boot into safe mode.
But to me, it seems like some kind of hardware bug? I mean, it seems like the same problen bothers the phone even when it's shut down, so I wouldn't gess it's a problem with the apps or the system! But I just don't get why it worked all the time and then just suddenly this thing happens! I've had it now for 6 weeks, and I already had a similar problem on the second day already, but it went away with a hard reset while charging... after that, perfect charging and good battery life for 6 weeks!
Regards,
Aleks -
Strange Behavior with gMSA in Server 2012 R2
Greetings,
I have been doing some testing with gMSA Accounts in a Server 2012 R2 environment (two separate environments, actually), and I have noticed something very strange that occurred in both environments, which does not appear to be occurring in one of our customer's
self-managed environments.
We created a Group Managed Service Account using the following article:
http://blogs.technet.com/b/askpfeplat/archive/2012/12/17/windows-server-2012-group-managed-service-accounts.aspx
Everything went smoothly, and the account installs/tests successfully on both of the hosts that we are testing on. I am able to set my services to run under the account, and most of them appear to work fine. I am having some issues with a few of my services,
and I believe that the strange behavior I am seeing may have something to do with this - described below:
As soon as I set the service's Log On Account (via the Log On Tab under the Service's Properties), the entirety of the "Log On" tab changes to "greyed out," and I am unable to change the Log On account back via the GUI (Screenshot
attached).
I found that I am able to successfully change the account via Command Line using sc.exe, but the Log On tab remains greyed out! So far, I have found nothing to remedy this, but confirmed that it happens for any service I set to use the gMSA as the Logon
Account, and that it happens in 2 separate test environments, but not in a Customer's production environment - very strange.
All servers in this environment are running Server 2012 R2, and domain Functional Level is currently Server 2012.
I have been unable to find any information online about this behavior, so I am hoping someone has seen this before, and can explain why this is happening.
NickVIvian,
Yes, we used the Install-AdServiceAccount gMSA command on each host using the gMSA account, and then ran Test-AdServiceAccount gMSA, which returned "True."
However, one thing I noticed is that if I run Test-ADServiceAccount gMSA as a Local Administrator, it fails with the following:
PS C:\Users\Administrator> Test-AdServiceAccount gMSA$
Test-AdServiceAccount : The server has rejected the client credentials.
At line:1 char:1
+ Test-AdServiceAccount gMSA$
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [Test-ADServiceAccount], AuthenticationException
+ FullyQualifiedErrorId : ActiveDirectoryCmdlet:System.Security.Authentication.AuthenticationException,Microsoft.A
ctiveDirectory.Management.Commands.TestADServiceAccount
If I run Test-ADServiceAccount gMSA as Domain Administrator, it returns true:
PS C:\Users\Administrator.<domainname>> Test-AdServiceAccount gMSA$
True
Is this normal?
Overall, I think the issue I am running into is at the Application Level, and not a problem with the gMSA, as it appears to be working. (Can Start/Stop services without any issues). I will be investigating my issue further with 3rd-party vendors, unless
you think there is something wrong with my gMSA accounts based on the information I have provided.
Nick -
Hi All,
I am facing a strange behavior with GET Event for PNP LDB.
In my selection-screen, i have fields like Payroll Area, Current Period, Other Period, personnel number.
Usually, i populate Payroll area, other period(say 06-2007) and input some personnel number.
When i tried to debug for one personnel, its not at all going into GET PERNR event...it directly goes to END-OF-SELECTION event.
Please help on this.
Regards,
Kiran ChennapaiHi Manoj,
The below is some part for my coding:
START-OF-SELECTION.
IF pnptimr9 = 'X'.
PERFORM f_get_next_period. "Take next period when the selection
" is current period
ENDIF.
Get deatils of actions and pay-scales
PERFORM f_get_data.
CLEAR: g_num_processed, g_num_skipped, g_num_success, g_num_error.
GET pernr.
rp_provide_from_last p0001 space pn-begda pn-endda.
IF pnp-sw-found = 1.
Verify whether the personnel is under the given Payroll area or not
CHECK p0001-abkrs = pnpxabkr.
IF p_eegrp IS NOT INITIAL.
Verify personnel's employee group is under the given EEgroup
CHECK p_eegrp = p0001-persg.
ENDIF.
start processing for the selected personnel
PERFORM f_process_data.
ENDIF.
END-OF-SELECTION.
Do increment process for all the selected personnel
IF NOT git_process[] IS INITIAL.
PERFORM f_increment_process.
ENDIF.
When i tried to put a break-point at the first statement in the GET event and executed, its not going into GET event at all.(personnel number is existing in the system)
Regards,
Kiran Chennapai -
Strange behavior in updating and standbying
Hi,
In the last 4 weeks I've been facing some strange behavior from my iPhone 4. First, sometimes when I pick it up its screen is already on (dimmed) and showing the lock screen (with some elements missing though). Secondly, and more annoying yet, when I try to update the apps via app store the initial process occurs normally but after loading the first app it begins installing it and keeps in it forever. I have to soft reset the phone. After that, the app (that kept installing) seems ok. So, I repeat the process of update from the beginning (app after app).
I've already tried to hard reset the device without any luck with any of the problems. Any suggestions about what is going on?
Thanks
AdrianoHi,
I'm not clear on the distinction you're making for type of access.
Well, to be honest, now that I've re-read that this morning I'm not completely sure what I had in mind either. I think I was thinking about using the collection in what I believe the documentation calls "slices". However, given the other information you've posted it doesn't seem like that would be a feasible alternative in any case.
I understand what you mean about varray and nested-table with the upper-bound limit for the varray's... I've not actually compared the two for performance so my idea that there may be a difference could be completely incorrect. Beyond that, creating code that only works in batches (or slices) may be less performant than what you currently have.
I hope I've not detracted from the thread and maybe someone else with more experience will have an "ah ha!" sort of observation.
Regards,
Mark -
Strange behavior with Bindings??
Hello to all JavaFX 2 Binding experts,
I have a strange behavior with Bindings in JavaFX 2.2 (Java 1.7 update 21). Please have a look at the following source code:
package test;
import javafx.application.Application;
import javafx.beans.binding.BooleanBinding;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.RadioButton;
import javafx.stage.Stage;
public class BindingVsProperty extends Application
@FXML
private RadioButton opt11;
@FXML
private RadioButton opt12;
@FXML
private RadioButton opt21;
@FXML
private RadioButton opt22;
@FXML
private Label lbl11And21;
@Override
public void start(Stage arg0) throws Exception
FXMLLoader l_loader = new FXMLLoader();
l_loader.setLocation(BindingVsProperty.class.getResource("BindingVsproperty.fxml"));
l_loader.setController(this);
l_loader.load();
Scene l_scene = new Scene((Parent)l_loader.getRoot());
arg0.setScene(l_scene);
useBinding1();
//useBinding2();
//useBinding3();
arg0.show();
private void useBinding1() // NOT WORKING - ChangeListener.changed(..) is not called
BooleanBinding l_andOpt11Opt21 = opt11.selectedProperty().and(opt21.selectedProperty());
l_andOpt11Opt21.addListener(new ChangeListener<Boolean>()
@Override
public void changed(ObservableValue<? extends Boolean> arg0, Boolean arg1, Boolean arg2)
System.out.println("Opt 1.1 AND Opt 2.1 changed to: " + arg2);
private void useBinding2() // OK - ChangeListener.changed(..) is called
BooleanBinding l_andOpt11Opt21 = opt11.selectedProperty().and(opt21.selectedProperty());
lbl11And21.visibleProperty().bind(l_andOpt11Opt21);
l_andOpt11Opt21.addListener(new ChangeListener<Boolean>()
@Override
public void changed(ObservableValue<? extends Boolean> arg0, Boolean arg1, Boolean arg2)
System.out.println("Opt 1.1 AND Opt 2.1 changed to: " + arg2);
private void useBinding3() // NOT WORKING - ChangeListener.changed(..) is not called
BooleanBinding l_andOpt11Opt21 = opt11.selectedProperty().and(opt21.selectedProperty());
new SimpleBooleanProperty(false).bind(l_andOpt11Opt21);
l_andOpt11Opt21.addListener(new ChangeListener<Boolean>()
@Override
public void changed(ObservableValue<? extends Boolean> arg0, Boolean arg1, Boolean arg2)
System.out.println("Opt 1.1 AND Opt 2.1 changed to: " + arg2);
public static void main(String[] args)
launch(args);
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.paint.*?>
<BorderPane id="BorderPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="371.0" xmlns:fx="http://javafx.com/fxml">
<center>
<AnchorPane prefHeight="200.0" prefWidth="200.0">
<children>
<Label id="lblAnd" fx:id="lbl11And21" layoutX="82.0" layoutY="121.0" text="Group1 Opt1 AND Group2 Opt1 is true" textFill="#41cc00" visible="false" />
<RadioButton fx:id="opt21" layoutX="216.0" layoutY="24.0" mnemonicParsing="false" text="Group 2 - Opt 1">
<toggleGroup>
<ToggleGroup fx:id="group2" />
</toggleGroup>
</RadioButton>
<RadioButton fx:id="opt22" layoutX="216.0" layoutY="67.0" mnemonicParsing="false" text="Group 2 - Opt 2" toggleGroup="$group2" />
<RadioButton fx:id="opt11" layoutX="29.0" layoutY="24.0" mnemonicParsing="false" text="Group 1 - Opt 1">
<toggleGroup>
<ToggleGroup fx:id="group1" />
</toggleGroup>
</RadioButton>
<RadioButton fx:id="opt12" layoutX="29.0" layoutY="67.0" mnemonicParsing="false" text="Group 1- Opt 2" toggleGroup="$group1" />
</children>
</AnchorPane>
</center>
</BorderPane>
What I need for my application is the use case in useBinding1(), i.e., a BooleanBinding where several listeners are attached to. The problem is that I never get a callback in the ChangeListener if one of the RadioButton.selectedProperty() is changed.
Now I tried what happens if I use the same BooleanBinding for another binding to a property plus the listener, now the listener gets callbacks as expected! (see useBinding2() )
Than I thought may be Bindings must be bound in order to trigger listeners and tried useBinding3() where I bind the BooleanBinding to a new BooleanProperty, in this case the listener doesn't get callback anymore...
And now I'm very frustrated and hope that anyone out there can help me to understand this strange behavior.
Thanks a lot!
WhiteAntelopeAll these work just fine for me: the listeners are all called as expected. Note that the listener is only invoked when the value of the binding actually changes, which doesn't happen every time a radio button is pressed. (For example, if both buttons are unselected, the binding is false. If one button is selected, the binding remains false and the listener is not invoked. When the second button is selected, the binding becomes true, and the listener is invoked.)
-
802.1x "MachineorUser" Auth Mode strange behavior in 2950 & 3750 Switches
Good Day Support Team around the world,
Having started recently tests with 802.1x in a lab environment, I noticed a strange behavior related to authentication. First let me provide you with the network components I used.
supplicant: domain-joined laptop with Windows XP SP3 802.1x embedded client
authenticator1: Cisco 2950-24
authenticator2: Cisco 3750-24
authentication server: MS NPS Windows Server 2008
1. In the first scenario with 3750 switch when I connect the laptop to relevant port the machine authentication is successful. Then I try to login with a domain account and again the authentication is completed without any problem. Then I log off and user authentication is revoked and the machine authentication is used again without any issue. When I try to login again as local user the authentication fails as expected but the port remains disabled (port blinking amber) regardless the fact that port is configured for Auth-Fail Vlan. When I log off then the machine authentication is used again and the access is granted.
2. In the second scenario with 2950 switch as authenticator, I follow the same steps as before and when I try to login as local user the authentication is failed and the port is assigned the Auth-Fail Vlan (as expected based on configuration). However when I log off it seems that the 2950 switch still use the Auth-Fail Vlan for that port and never authenticates again for machine authentication.
Could you please let me someone know if this is normal ( I suppose no). Please find attached the relevant debug output from the second scenario.
Thank you!!!Hi,
basically what happens is that the maximum EAP packet size for communication between client and RADIUS server is negotiated. Therefore, in your case the switch notifies NPS that the client is capable of handling packets up to 9000 bytes in size.
EAP messages, especially those containing the server certificate, are usually bigger than 1500 bytes and arrive at the switch in multiple fragments:
Mar 6 15:50:11.881: RADIUS(0000002C): Received from id 1645/41
Mar 6 15:50:11.881: RADIUS/DECODE: EAP-Message fragments, 253+253+253+253+253+253+253+253+20, total 2044 bytes
Having learned that 2044 bytes is acceptable for the client, the switch forwards the full message in one chunk, but since your client is likely to have set the interface MTU to 1500, the packet is oversized and never reaches its destination.
And yes, I think changing the System Jumbo MTU to 1500 bytes would lead to the same result. If my memory serves me right, a new setting takes effect only after a reboot, so I'd suggest giving it a go in your lab first.
Best regards,
Josef -
Strange Behavior of program while using BAPI_PO_CREATE1
Hello SAP GURUs,
I've created an Upload Program using BAPI_PO_CREATE1 for Mass Service PO Creation.
When I execute the program and Specify the File for uploading, It Gives me errors as
E BAPI 1 No instance of object type PurchaseOrder has been created. External reference:
E MEPO 0 Purchase order still contains faulty items
E 6 436 In case of account assignment, please enter acc. assignment data for item
But when I come back to Selection Screen of the Program and specify the SAME FILE AGAIN and Execute,
The Program runs successfully and generates the PO number.
I have never seen such strange behavior in any BAPIs before.
Pls help..PERFORM refresh_tables.
PERFORM fill_tables.
END-OF-SELECTION.
Display the Summary as an ALV Grid Display
IF NOT ig_mymssg[] IS INITIAL.
PERFORM display_basic_list . "Grid Display
ELSE.
MESSAGE s000 WITH 'No data exists'(051).
STOP.
ENDIF.
*& Form refresh_tables
text
--> p1 text
<-- p2 text
FORM refresh_tables .
REFRESH: ig_fieldcat,
ig_mymssg,
poitem,
poitemx,
poaccount,
poaccountx,
poservices,
ig_return.
wt_itab, record, record2 .
ENDFORM. " refresh_tables
*& Form fill_tables
text
--> p1 text
<-- p2 text
FORM fill_tables .
record2[] = record[].
record3[] = record[].
DELETE ADJACENT DUPLICATES FROM record COMPARING id_no.
DELETE ADJACENT DUPLICATES FROM record2 COMPARING id_no po_item.
SELECT MAX( packno ) FROM esll INTO wrk_packno.
LOOP AT record.
CLEAR : poheader, poheaderx, wa_poitem, wa_poitemx, wa_poservices, wa_poaccount, wa_poaccountx, wa_poschedulex, wa_poschedule.
REFRESH: poitem, poitemx, poaccount, poaccountx, poservices, ig_return, posrvaccessvalues, poschedule, poschedulex.
PERFORM po_header.
LOOP AT record2 WHERE id_no = record-id_no.
wrk_packno = wrk_packno + 1.
PERFORM po_item.
PERFORM po_scheudle.
PERFORM acc_assignment.
PERFORM po_services.
ENDLOOP.
PERFORM create_po.
ENDLOOP.
ENDFORM. " fill_tables
*& Form display_basic_list
text
--> p1 text
<-- p2 text
FORM display_basic_list .
g_repid = sy-repid.
PERFORM f2000_fieldcat_init .
PERFORM display_alv_grid_1.
ENDFORM. " display_basic_list
*& Form f2000_fieldcat_init
text
--> p1 text
<-- p2 text
FORM f2000_fieldcat_init .
REFRESH ig_fieldcat.
PERFORM fill_fields_of_fieldcatalog USING 'IG_MYMSSG'
'STATUS'
c_x
'Status'
'10'.
PERFORM fill_fields_of_fieldcatalog USING 'IG_MYMSSG'
'RECORD'
c_x
'Record'
'20'.
PERFORM fill_fields_of_fieldcatalog USING 'IG_MYMSSG'
'ERRMSG'
'Message'
'100'.
ENDFORM. " f2000_fieldcat_init
*& Form display_alv_grid_1
text
--> p1 text
<-- p2 text
FORM display_alv_grid_1 .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_structure_name = 'IG_MYMSSG'
i_grid_title = 'LOG'
is_layout = wg_layout
it_fieldcat = ig_fieldcat[]
i_save = c_save
TABLES
t_outtab = ig_mymssg
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " display_alv_grid_1
*& Form fill_fields_of_fieldcatalog
text
-->P_0626 text
-->P_0627 text
-->P_C_X text
-->P_0629 text
-->P_0630 text
FORM fill_fields_of_fieldcatalog USING p_tabname TYPE slis_tabname
p_field TYPE slis_fieldname
p_key TYPE c
p_name
len.
To fill in the fields of the table fieldcatalog depending on the field
CLEAR wg_fieldcat.
wg_fieldcat-fieldname = p_field. " The field name and the table
wg_fieldcat-tabname = p_tabname.. " name are the two minimum req
wg_fieldcat-key = p_key. " Specifies the column as a key
wg_fieldcat-seltext_l = p_name. " Column Header
wg_fieldcat-outputlen = len.
APPEND wg_fieldcat TO ig_fieldcat.
ENDFORM. " fill_fields_of_fieldcatalog
*& Form create_po
text
--> p1 text
<-- p2 text
FORM create_po .
CLEAR : wg_return.
REFRESH : ig_return.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = poheader
poheaderx = poheaderx
IMPORTING
exppurchaseorder = po_no
TABLES
return = ig_return
poitem = poitem
poitemx = poitemx
poschedule = poschedule
poschedulex = poschedulex
poaccount = poaccount
poaccountx = poaccountx
poservices = poservices
posrvaccessvalues = posrvaccessvalues.
SORT ig_return BY type.
READ TABLE ig_return INTO wg_return WITH KEY type = 'S'.
IF sy-subrc EQ 0.
CLEAR : wg_return.
REFRESH : ig_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
CLEAR wg_errmsg.
WRITE icon_green_light AS ICON TO wg_errmsg-status.
CONCATENATE record-id_no po_no INTO wg_errmsg-record SEPARATED BY '/'.
wg_errmsg-record = po_no.
wg_errmsg-errmsg = 'PO created'.
APPEND wg_errmsg TO ig_mymssg.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
READ TABLE ig_return INTO wg_return WITH KEY type = 'E' TRANSPORTING message.
CLEAR wg_errmsg.
WRITE icon_red_light AS ICON TO wg_errmsg-status.
wg_errmsg-record = record-id_no.
wg_errmsg-errmsg = wg_return-message.
APPEND wg_errmsg TO ig_mymssg.
ENDIF.
ENDFORM. " create_po
*& Form po_header
text
--> p1 text
<-- p2 text
FORM po_header .
poheader-comp_code = record-comp_code.
poheader-doc_type = record-doc_type.
poheader-vendor = record-vendor.
poheader-purch_org = 'SERV'.
poheader-pur_group = record-pur_group.
poheader-currency = 'INR'.
poheaderx-comp_code = 'X'.
poheaderx-doc_type = 'X'.
poheaderx-vendor = 'X'.
poheaderx-purch_org = 'X'.
poheaderx-pur_group = 'X'.
poheaderx-currency = 'X'.
ENDFORM. " po_header
*& Form po_item
text
--> p1 text
<-- p2 text
FORM po_item .
DATA : days TYPE num2.
DATA : final_dt TYPE datum.
DATA : is_ok TYPE boole_d.
DATA : msg_hndlr TYPE REF TO if_hrpa_message_handler.
days = 20.
CALL FUNCTION 'HR_ECM_ADD_PERIOD_TO_DATE'
EXPORTING
orig_date = sy-datum
num_days = days
signum = '+'
message_handler = msg_hndlr
IMPORTING
result_date = final_dt
is_ok = is_ok.
CLEAR: wa_poitem,wa_poitemx.
wa_poitem-po_item = record2-po_item.
wa_poitem-short_text = record2-short_text.
wa_poitem-plant = record2-plant.
wa_poitem-matl_group = 'S001'.
wa_poitem-tax_code = 'LA'.
wa_poitem-item_cat = item_cat.
wa_poitem-pckg_no = wrk_packno.
wa_poitem-acctasscat = acctasscat.
wa_poitem-gr_to_date = final_dt.
APPEND wa_poitem TO poitem.
wa_poitemx-po_item = record2-po_item.
wa_poitemx-po_itemx = 'X'.
wa_poitemx-short_text = 'X'.
wa_poitemx-plant = 'X'.
wa_poitemx-tax_code = 'X'.
wa_poitemx-item_cat = 'X'.
wa_poitemx-acctasscat = 'X'.
wa_poitemx-pckg_no = 'X'.
wa_poitemx-matl_group = 'X'.
wa_poitem-gr_to_date = 'X'.
APPEND wa_poitemx TO poitemx.
ENDFORM. " po_item
*& Form PO_SERVICES
text
--> p1 text
<-- p2 text
FORM po_services .
CLEAR: wa_poservices, wa_posrvaccessvalues.
wa_poservices-pckg_no = wrk_packno.
wa_poservices-line_no = '0000000001'.
wa_poservices-outl_ind = 'X'.
wa_poservices-subpckg_no = wa_poservices-pckg_no + 1.
wa_poservices-from_line = '000001'.
APPEND wa_poservices TO poservices.
CLEAR wa_poservices.
wrk_packno = wrk_packno + 1.
wa_poservices-pckg_no = wrk_packno.
wa_poservices-line_no = '0000000002'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = record2-service
IMPORTING
output = record2-service.
wa_poservices-ext_line = '0000000010'.
wa_poservices-service = record2-service.
wa_poservices-quantity = record2-quantity.
wa_poservices-gr_price = record2-gr_price.
wa_posrvaccessvalues-pckg_no = wrk_packno.
wa_posrvaccessvalues-line_no = '0000000002'.
wa_posrvaccessvalues-serial_no = '01'.
wa_posrvaccessvalues-serno_line = '01'.
wa_posrvaccessvalues-quantity = record2-quantity.
wa_posrvaccessvalues-net_value = record2-gr_price.
APPEND wa_poservices TO poservices.
APPEND wa_posrvaccessvalues TO posrvaccessvalues.
ENDFORM. " PO_SERVICES
*& Form ACC_ASSIGNMENT
text
--> p1 text
<-- p2 text
FORM acc_assignment .
DATA : tmp_gl LIKE bapimepoaccount-gl_account.
tmp_gl = '400265'.
CLEAR : wa_poaccount, wa_poaccountx.
wa_poaccount-po_item = record2-po_item.
wa_poaccount-serial_no = '01'.
wa_poaccount-co_area = '1000'.
wa_poaccount-quantity = record2-quantity.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = tmp_gl
IMPORTING
output = wa_poaccount-gl_account.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = record2-orderid
IMPORTING
output = wa_poaccount-orderid.
APPEND wa_poaccount TO poaccount.
wa_poaccountx-po_item = record2-po_item.
wa_poaccountx-serial_no = '01'.
wa_poaccountx-co_area = 'X'.
wa_poaccountx-quantity = 'X'.
wa_poaccountx-gl_account = 'X'.
wa_poaccountx-orderid = 'X'.
APPEND wa_poaccountx TO poaccountx.
ENDFORM. " ACC_ASSIGNMENT
*& Form PO_SCHEUDLE
text
--> p1 text
<-- p2 text
FORM po_scheudle .
CLEAR : wa_poschedule, wa_poschedulex.
wa_poschedule-po_item = record2-po_item.
wa_poschedule-sched_line = '0001'.
wa_poschedule-del_datcat_ext = 'D'.
wa_poschedule-delivery_date = sy-datum.
wa_poschedule-quantity = record2-quantity.
APPEND wa_poschedule TO poschedule.
wa_poschedulex-po_item = record2-po_item.
wa_poschedulex-sched_line = '0001'.
wa_poschedulex-po_itemx = 'X'.
wa_poschedulex-sched_linex = 'X'.
wa_poschedulex-del_datcat_ext = 'X'
wa_poschedulex-delivery_date = 'X'.
wa_poschedulex-quantity = 'X'.
APPEND wa_poschedulex TO poschedulex.
ENDFORM. " PO_SCHEUDLE -
Strange behavior of system with enabled FileVault2, Roaming profile
Hello,
I have encountered strange behavor of my Macbook Air after some testing.
Macbook Air 2012 was newly installed with 10.8.4 and joined network account server on 10.8.4 server with Roaming profile (synced with server home directory). After installing some basic apps like iWork I turned on FileVault.
Then I start to have the strange behavior - iWorks are not displaying content of document - it seams blank - just white screen without any borders where should be at least lines in numbers or empty cells.
Another display problem is in Safari. On same pages (even default Top SItes) it`s flashing and especially when scrolling.
Did you encountered something similar? I`m not able to get rid of it.
Computers was used for some time before turining on FIle Vault and problem started to occur after this action. Disabling of FileVault didn`t helped (properly restarted between steps).
I didn`t found anything strange in Console or elsewhere..Please read this whole message before doing anything.
This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
Step 1
The purpose of this step is to determine whether the problem is localized to your user account.
Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
Test while logged in as Guest. Same problem?
After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
*Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
Step 2
The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, or by corruption of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
Test while in safe mode. Same problem?
After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2. -
Strange behavior of GetStringUTFChars in Linux
Good evening!
I made an implementation of a native method in C++ for Windows and Linux, in windows it works fine, but in Linux I have a strange behavior of GetStringUTFChars here is the piece code :
JNIEXPORT jint JNICALL Java_MyNativeMethod
(JNIEnv *env, jobject obj, jstring IpAddress) {
const char * ccpIpAddress = env->GetStringUTFChars(IpAddress, 0);
jsize size = env->GetStringLength(ccpIpAddress);
trace("IpAddress : %s size: %d", ccpIpAddress, size);
Absolute normal... but when I pass as parameter a string '192.168.1.11'
I receive from 'IpAddress : HBĽ1 size: 0' to 'IpAddress : P9D7D6DwD�MS\H#M\H : 251'
I made a little and simple test to print a String to verify if is Linux problem but IT WORKED FINE!
I've notice that the differences between both programs are that the wrong one has been linked with a C lib, but the #define __cplusplus is OK also, and all the compile process use C++ code...
This is my compilation line
g++ -o lib{myLib}.so {myImpl}.cpp lib{C li}.so libstdc++.so -I {JAVA_HOME}/include/ -I {JAVA_HOME}/include/linux/ -shared -static -L{JAVA_HOME}/jre/lib/i386/
(variables put for clarity) and (I tried with gcc also)
the libstrd++.so is been used in my simple test link options too.
I was wondering if there is some -Doption which should be defined that
functions->GetStringChars(this,str,isCopy); implementation ask for...
or if the link with a C code is messing the things in a different behavior
Thanks for the help
Pedro Ribeiro
Sao Paulo - BrazilJNIEXPORT jint JNICALL Java_MyNativeMethod
(JNIEnv *env, jobject obj, jstring IpAddress) {
const char * ccpIpAddress = env->GetStringUTFChars(IpAddress, 0);
jsize size = env->GetStringLength(ccpIpAddress);
trace("IpAddress : %s size: %d", ccpIpAddress, size);
=====================
You tried to get the string length of C character array.
I think you can get the length of jstring alone.
Please advice me if I am wrong -
Strange behavior of the notifications
Hi guys.
I use an iPhone 5S running iOS 7.0.3 and have a strange behavior of the notifications.
Example:
I get 3 messages from WhatsApp.
The lock-screen shows the preview of all 3 messages. OK so far.
But if I unlock my iPhone, a banner shows the latest message and the app-badge shows only 1.
This I have with other apps too.
This was not with older iOS versions
All settings looks OK. Do you have an idea?
Thank you, TomBecause you are comparing floating point numbers.
For example 0.1 cannot be exactly represented in binary, so repetitve additions will probably not end in an exact integer later.
From the three inputs you can calculate the number of values exactly, and use a FOR loop. Don't use convoluted code....
Why don't you simply use ramp pattern?
LabVIEW Champion . Do more with less code and in less time . -
Hi everybody,
Can you please explain me this strange behavior of NVL function:
SQL> select nvl(10000,'none') from dual;
select nvl(10000,'none') from dual
ERROR at line 1:
ORA-01722: invalid number
SQL> select nvl('none',10000) from dual;
NVL(
none
Can you explain what goes on internally to make these statements different?
I mean why is it expecting a number(as a second arg) in Case 1 and why is it not expecting a character string as a second arg in Case 2? Has it got to do with implicit type-conversion?
Finally, does NVL need both arguments of the same type?
Any help will be greatly appreciated.
Thanks.
Kishore.The return type of NVL is the datatype of the first argument. If the two arguments have different datatypes Oracle applies a conversion. That's why you got your results: in effect what you were running was
select nvl(10000,to_number('none')) from dual;and
select nvl('none',to_char(10000)) from dual;Of course, 'none' is not a valid number, hence the ORA-1722 result, whereas 10000 can be successfully rendered as a string.
If you do not provide NVL with arguments of the same datatype it will apply an implicit conversion to the second datatype. It is always better (that is safer) to avoid implicit data conversion.
Cheers, APC
P.S. For bonus points, which argument determines the datatype of a DECODE function? -
Can anyone Reproduce This screencast? Strange behavior from Mac
https://drive.google.com/file/d/0B5LXJD4aR7maZng4cnl6Z2UxS28/edit?usp=sharing
1. Open finder and click go
2. go to /var
3. click on var alias and go to at file
After you open the /var/at folder there is a file called at.deny
4. Click on the file called at.deny and open with other application
You can only open it with Imessage, applemail or text edit. Notice in the screen cast that it automatically sends the at.deny file to any address that I type in I message.
5. You can also click on chron.deny and you can send that file automatically in Imessage or applemail. IS THIS NORMAL.
I AM PRETTY MUCH A NOVICE, BUT THIS MAC HAS SOME STRANGE BEHAVIORS. COULD THIS BE WHAT THEY CALL A BACKDOOR????APPLE JUST SCRATCHES THEIR HEAD??????]This is a file that is located at /var/db/caches/opendirectory/cache_mbr
Does any other mac users have this type of file -
Disk space vanishing, other strange behavior
In the last two days TechTool has been announcing that my free disk space is getting low. Started at 15%, but it keeps dropping down to 1%. I've deleted about 100GB of data in the last two days, but it isn't helping.
Checked my log files which aren't ridculously big. None of my processes are using a fraction of the 160GB+ it shows as being allocated to VM. Some strange log entries in console related to MacHelper, but I don't think I ever installed it. Ran an uninstaller just in case.
Prior to this happening some other odd things have been happening for a week or so:
External drives aren't dismounting correctly. Click eject and the name remains grayed out and if I unplug the drive I get chided for removing a drive.
System hangs and requires forced restart. Hangs during restart on the desktop image.
Had some trouble with an external e-sata drive dismounting all the time using the card slot adaptor for e-Sata. Card would get extremely hot. Used FW800 but had strange behavior with 5 additional drives reminiscent of SCSI. Once I changed the cables around it stopped doing this.You may not have gotten all of MacKeeper. From an earlier post of mine:
I'd search for it using EasyFind. Enter "MacKeeper" and "Zeobit." Set EF to scan all files and folders, invisible, case insensitive, package contents. Search using boolean and phrase. It will probably do a more thorough job than Spotlight. If you can't "Destroy" from EF, use Reveal in Finder to trash and authenticate from there.
It is also known to install a Windows emulator called "wine;" search for that.
Also, look in the Keychain for anything MacKeeper or zeobit related, and for its cookies in your browser. When finished, empty the Trash and restart.
http://www.devon-technologies.com/download/index.html
Somehow, as BDAqua suggested, I'm still suspecting it's the logs filling up with a constantly repeating message. Are there any other Users? Can you log in to those and see what's going on with those logs?
Permissons repair has nothing to do with this.
Get OmniDisk Sweeper. Run it logged in to all your users.
http://www.omnigroup.com/products/omnidisksweeper/
Maybe you are looking for
-
Can I scale an oam file in Muse?
It would seem not, as I can't do it. If anyone knows, please reply. The pixel preview of an oam does not even match in Muse. This makes it hard to place the animation with any accuracy.
-
i ahve tried several times to fix it by going to tools and download but i ahve failed countless times i cant uptdate itunes i cant uptdate my ipod if anyone knows what to do please help!!!!!!!!
-
File Resolution Export Problem
I'm having problems with the resolution option when I export my images as jpegs in Lightroom. In the export dialog box, I enter the file resolution as 240ppi, but once the file is exported and I open it in Photoshop or Bridge, the resolution is 72ppi
-
Dear Members, We are using one client with one company code. Now we are adding new company code. What is the Pros and cons to create new Client for new company code.? What are the dependent and independent Element for using cross client. Waiting ur r
-
Anyone ever seen spotlight indexing errors on Xsan 2? Xsan Admin was hanging badly when trying to index the Xsan volume. It's just a theory at this points, but spotlight seems to hate files from Unix or Windows, especially files which are unique on t