Can anybody help me to troubleshoot this code
According to this code i must get the same number as o/p. But shift and add seems not functioning well.Can anybody help me to troubleshoot
Hello Pushpa,
Thank you for contacting National Instruments.
Which code are you specifying
Just make your problem clearly and elaborated
you can send me your code & If you might want to contact the developer of your application, contact - [email protected]
Have a great day.
Regards~
Mathews
[email protected]
Similar Messages
-
I did the iTunes update yesterday and now I am getting this message when I try to open iTunes - “This copy of iTunes is corrupted or is not installed correctly. Please re-install iTunes. (-42037) Can anybody help me out resolving this?
Download iTunes using the tab at the top of this page, re-install. Back up your computer first.
-
Can anybody help me to understand this RMI registry service code?
RMI is so difficult to me. please let me know following code what it means.
If this class is instantiated with 50000 port number,
Does RMI Registry Service get started with 50000 port number in place of rmiregistry commands?
And I don't have to execute rmiregistry command?
thanks in advance.
import java.rmi.AccessException;
import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.registry.Registry;
import java.rmi.server.ObjID;
import java.rmi.server.RemoteServer;
import java.util.Enumeration;
import java.util.Hashtable;
import sun.rmi.server.UnicastServerRef;
import sun.rmi.transport.LiveRef;
* Registry implementation.
* @version 1.0
public class RegistryImpl extends RemoteServer implements Registry {
private static final long serialVersionUID = -7162736590129110751;
private Hashtable bindings;
private static ObjID id = new ObjID(0);
* @param i port number
* @throws RemoteException
public RegistryImpl(int i) throws RemoteException {
bindings = new Hashtable(101);
LiveRef liveref = new LiveRef(id, i);
setup(new UnicastServerRef(liveref));
private void setup(UnicastServerRef unicastserverref) throws RemoteException {
super.ref = unicastserverref;
unicastserverref.exportObject(this, null, true);
* Lookup a remote object.
* @param name Name of the remote object.
* @return Remote object of the specified name.
public Remote lookup(String name) throws RemoteException, NotBoundException {
// Logger.debug("NamingService", "lookup: " + name);
Remote obj;
synchronized(bindings) {
obj = (Remote)bindings.get(name);
if(obj == null)
throw new NotBoundException(name);
return obj;
* Binds the specified name to a remote object.
* @param name A URL-formatted name for the remote object.
* @param obj A reference for the remote object (usually a stub).
public void bind(String name, Remote obj) throws RemoteException, AlreadyBoundException, AccessException {
// Logger.debug("NamingService", "bind: " + name);
checkAccess("Registry.bind");
synchronized(bindings) {
if(bindings.containsKey(name))
throw new AlreadyBoundException(name);
bindings.put(name, obj);
* Destroys the binding for the specified name that is associated with a remote object.
* @param name A URL-formatted name for the remote object.
public void unbind(String name) throws RemoteException, NotBoundException, AccessException {
// Logger.debug("NamingService", "unbind: " + name);
checkAccess("Registry.unbind");
synchronized(bindings) {
if(!bindings.containsKey(name))
throw new NotBoundException(name);
bindings.remove(name);
* Rebinds the specified name to a new remote object. Any existing binding
* for the name is replaced.
* @param name A URL-formatted name for the remote object.
* @param obj A reference for the remote object (usually a stub).
public void rebind(String name, Remote obj) throws RemoteException, AccessException {
// Logger.debug("NamingService", "rebind: " + name);
checkAccess("Registry.rebind");
bindings.put(name, obj);
* Returns an array of the names bound in the registry.
* @return An array of the names bound in the registry.
public String[] list() throws RemoteException {
String[] names;
synchronized(bindings) {
int i = bindings.size();
names = new String;
Enumeration e = bindings.keys();
while(--i >= 0)
names[i] = (String)e.nextElement();
return names;
* TO-DO
public static void checkAccess(String s) throws AccessException {
// check if s is in the list of agents.
if(true)
else
throw new AccessException("");
public static ObjID getID() {
return id;You don't have any need to understand this code. The complication is due to the registry needing a fixed objectID.
You just need to know the methods of java.rmi.registry.LocateRegistry class. This allows you to start an RMI Registry inside your JVM and give it any TCP port number you like. -
This is the goal:
Write a program that produces block letters for the following letters which could be read into your program: A, B, C, E, F, G, H, I, L, O, P, T, or U.
The user should input ONE letter from the keyboard. The user should also input a width as an integer to determine the width of the letters. This input should be at least 5 and up to 20; if the user enters less than 5 or more than 20, issue an error message for the user and quit the program.
Replies are gratly appreciated!!!jk89computer wrote:
To add to my original topic,
My question is can anybody produce a java program that can do the following:
Write a program that produces block letters for the following letters which could be read into your program: A, B, C, E, F, G, H, I, L, O, P, T, or U.
The user should input ONE letter from the keyboard. The user should also input a width as an integer to determine the width of the letters. This input should be at least 5 and up to 20; if the user enters less than 5 or more than 20, issue an error message for the user and quit the program.
For example, the letter A would be formed by:
* *Thank you for adding more complete requirements for us to do your homework for you. We'll get right on that. Donuts are on the table, help yourself to them while you wait. -
hey
can any one solve this code ??
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class File1 extends JFrame
public static void showgui()
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel emptyLabel = new JLabel("");
emptyLabel.setPreferredSize(new Dimension(640, 480));
frame.getContentPane().add(emptyLabel, BorderLayout.CENTER);
JButton b1= new JButton("JENIS");
add(b1);
b1.setBounds(350,220,120,20);
JSeparator jE =new JSeparator(JSeparator.HORIZONTAL);
jE.setBounds(350, 205, 120, 20);
add(jE);
add(new JSeparator(JSeparator.HORIZONTAL));
JButton b2= new JButton("MODI");
add(b2);
b2.setBounds(100,210,100,100);
frame.pack();
frame.setVisible(true);
public static void main(String[] args)
javax.swing.SwingUtilities.invokeLater(new Runnable()
public void run()
showgui();
actually i want to use jseparator , so if this cant be solved , send me another code that uses jseparator and gives the vertical / horizontal line between two buttons??
Its urgent ,
waiting for reply............Hi,
Is this ok?
public class NewJFrameSep extends javax.swing.JFrame {
public NewJFrameSep() {
initComponents();
private void initComponents() {
jSeparator1 = new javax.swing.JSeparator();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
getContentPane().setLayout(null);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().add(jSeparator1);
jSeparator1.setBounds(110, 120, 170, 100);
jButton1.setText("jButton1");
getContentPane().add(jButton1);
jButton1.setBounds(160, 80, 71, 23);
jButton2.setText("jButton2");
getContentPane().add(jButton2);
jButton2.setBounds(160, 140, 71, 23);
pack();
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrameSep().setVisible(true);
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JSeparator jSeparator1;
}regards
dina -
My Ipod doesn't sync songs anymore, can anybody help me out with this?
Hi all. Yesterday i did a Recovery on my computer and that wiped everything clean off of my computer, including the Itune program that i downloaded. And now, every since i downloaded Itunes again, it won't sync songs into my Ipod anymore. When i would download a few songs into Itunes, I would press on the sync button a message comes up saying that my ipod is synced with another Itunes library and can only be synced with one at a time. This won't let me transfer the songs onto my ipod. When i tryed to sync my songs again another message pops up saying to 'erase and sync'. Meaning that in order for me to sync the new songs onto my ipod, then they are gonna erase all of my existing songs that is currently on my ipod already! I don't wanna do that. I thought about restoring my ipod but i'm afraid that that would erase all of my songs off of my ipod as well. What do i do? Help would really be appreciated. Thank you.
Your iPod is designed to sync with only one iTunes library at a time. It will recognize the iTunes library on the restored/rolled back PC as a new library. If you sync the iPod with this new/different library, all content will be erased from the iPod and replaced with what is in the new library. So what you will want to do is copy everything from the iPod to your new iTunes library on your PC first.
See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
https://discussions.apple.com/thread/2452022?start=0&tstart=0
B-rock -
Can anybody help me to check my code !
In my following code I am getting data repeatedly !
please help me to correct it.
SELECT
VBAP~VBELN
VBAP~POSNR
VBAP~MATNR
VBAP~VKAUS
VBAP~SPART
VBAP~NETWR
VBAP~WAERK
VBAP~KWMENG
VBAP~KONDM
VBAP~MVGR1
VBAP~MVGR2
VBAP~MVGR3
VBAP~MVGR4
VBAP~MVGR5
VBKD~KONDA
VBKD~BSTDK
VBKD~BSTDK_E
VBKD~KDKG2
FROM VBAP AS VBAP JOIN VBKD AS VBKD
ON VBAPVBELN EQ VBKDVBELN
INTO CORRESPONDING FIELDS OF TABLE I_ITEM
WHERE VBAP~VBELN EQ S_VBELN
and vbap~matkl NOT IN r_matkl.Hi,
Sort the Internal table I_ITEM by some field(s). Use
DELETE ADJACENT DUPLICATES FROM I_ITEM COMPARING ALL FIELDS.
Award points if it helps.
Regrads,
Khalid -
Can anybody help me to buil this query
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
============================
table1
======
lvl1 lvl2 lvl3 lvl4 value
============================
a b c c1 100
a b c c2 200
a e d 30
table2
=========
lvl parenttochild
==================
a 1
b 2
e 2
c 3
d 3
c1 4
c2 4
can i make it from the above table
lvl parenttochild value
=========================
a 1 330
b 2 300
e 2 30
c 3 300
d 3 30
c1 4 100
c2 4 200user5813325 wrote:
1st two column coming from table 2 and next column-sum of all(a) 330,sum(b)-300 like that way...Not clear with this explanation.
But still,
--Sample table
with table1
as
select 'a' lvl1, 'b' lvl2, 'c' lvl3, 'c1' lvl4, 100 value from dual
union all
select 'a', 'b', 'c', 'c2', 200 from dual
union all
select 'a', 'e', 'd', '', 30 from dual
), table2
as
select 'a' lvl, 1 parenttochild from dual
union all
select 'b', 2 from dual
union all
select 'e', 2 from dual
union all
select 'c', 3 from dual
union all
select 'd', 3 from dual
union all
select 'c1', 4 from dual
union all
select 'c2', 4 from dual
-- End of sample table
-- Main Select
select t2.lvl, t1.value
from (
select decode(no, 1, lvl1, 2, lvl2, 3, lvl3, 4, lvl4) lvl, sum(value) value
from table1,
(select level no from dual connect by level <= 4) -- Number of columns 4
where decode(no, 1, lvl1, 2, lvl2, 3, lvl3, 4, lvl4) is not null
group
by decode(no, 1, lvl1, 2, lvl2, 3, lvl3, 4, lvl4)
) t1
left
join table2 t2
on t1.lvl = t2.lvl
--End of main select
LVL VALUE
a 330
b 300
e 30
c 300
d 30
c1 100
c2 200 -
Can anybody give the solution of this code
SELECT poh.org_id,pv.vendor_name,pol.creation_date,poh.segment1 "PO_NUM"
rt.unit_price,jpt.tax_amount,NVL (pol.unit_price, 0) "PO_Amt",
pda.quantity_ordered "QTY_Ordered",rsh.invoice_num,pol.item_description,
msib.segment1,msib.segment2,msib.segment3,msib.segment4,mic.category_set_id
FROM po_headers_all poh,
po_lines_all pol,
po_distributions_all pda,
rcv_shipment_headers rsh,
rcv_transactions rt,
po_vendors pv,
jai_po_taxes jpt,
mtl_system_items_b msib,
mtl_item_categories mic
WHERE rsh.vendor_id = poh.vendor_id
AND rt.po_header_id = pol.po_header_id
AND poh.vendor_id = pv.vendor_id
AND poh.po_header_id = pol.po_header_id
AND jpt.vendor_id = poh.vendor_id
AND msib.inventory_item_id = mic.inventory_item_id;Just to make things more evident
SELECT poh.org_id,
pv.vendor_name,
pol.creation_date,
poh.segment1 "PO_NUM"
rt.unit_price,
jpt.tax_amount,
NVL (pol.unit_price, 0) "PO_Amt",
pda.quantity_ordered "QTY_Ordered",
rsh.invoice_num,
pol.item_description,
msib.segment1,
msib.segment2,
msib.segment3,
msib.segment4,
mic.category_set_id
FROM po_headers_all poh, /* (1)(3)(4)(5) */
po_lines_all pol, /* (2)(4) */
po_distributions_all pda, /* not joined */
rcv_shipment_headers rsh, /* (1) */
rcv_transactions rt, /* (2) */
po_vendors pv, /* (3) */
jai_po_taxes jpt, /* (5) */
mtl_system_items_b msib, /* (6) */
mtl_item_categories mic /* (6) */
WHERE rsh.vendor_id = poh.vendor_id /* (1) */
AND rt.po_header_id = pol.po_header_id /* (2) */
AND poh.vendor_id = pv.vendor_id /* (3) */
AND poh.po_header_id = pol.po_header_id /* (4) */
AND jpt.vendor_id = poh.vendor_id /* (5) */
AND msib.inventory_item_id = mic.inventory_item_id /* (6) */and another way
poh pol pda rsh rt pv jpt msib mic
1111111111111111
2222222222222222
33333333333333333333333333
444444
5555555555555555555555555555555
666666
/* msib|mic not joined with poh|pol|pda|rsh|rt|pv|jpt */
/* no join begins/ends at pda */Regards
Etbin -
i bought a iphone 3g from market yesterday and the phone is showing a usb an also itunes logo on the screen, the ive tryed restore and update, but once this has finished it gives me erra code (1015) can anybody help me plz
Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.
http://support.apple.com/kb/TS3694#error1015. -
hello, just wondering how i can fix my itunes when i keep getting these msges, MSVCR80.dll was not found and error 7 (windows error 126). can anybody help. cheers.
See Troubleshooting issues with iTunes for Windows updates.
tt2 -
I have Windows 7 home premium, running on a Dell XPS 15, with 64 bit OS, and when i went to install itunes for my new phone, it would almost install, but then say that it couldn't install due to issues with windows Installer. has anybody had this happen to them? can anybody help me out with this?
Many thanks.
"There is a problem with this Windows Installer Package. A program required for this install to complete could not be run. Contact your support personnel or package vendor".
Perhaps let's first try updating your Apple Software Update.
Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time? -
Can anybody help me set this code into an array?
Thanks, can you help me understand how to make an array work?
I need to fade toggle a different country png for each country button and fade out the rest of the country images i.e.: when i click the UK button i need to fade toggle the UK png and fade out the other countries
when i click the USA button i need to fade toggle the USA ing and fade out the other countries and so on
sym.getSymbol("Countries").$("UK").fadeToggle();sym.getSymbol("Countries").$("USA","AUS","Hongkong","Switzerland","Ireland","Indias","Japa n","Netherlands","Spain").fadeOut();
sym.getSymbol("Countries").$("USA").fadeToggle();sym.getSymbol("Countries").$("UK","AUS","Hongkong","Switzerland","Ireland","Indias","Japan ","Netherlands","Spain").fadeOut();
etc
but it doesn't seem to work how i have it and i have been told to do an array but I'm not sure how?
Project here if you want to have a look:
Dropbox - Countries.zip
can you help?I think this[var = sym.getSymbol (Stanbuttons).$(".UK_stan, .USA_stan"); ] should be
var myvar = sym.getSymbol (Stanbuttons).$(".UK_stan, .USA_stan");
And than
myvar.each(function(){
$(this).fadeOut(); -
Question
Images won't open in my gmail or websites can anybody help me? This happen when I updated to the newest version of FirefoxIf images are missing then check that you aren't blocking images from some domains.
See:
* http://kb.mozillazine.org/Images_or_animations_do_not_load
* Check the permissions for the domain in the current tab in Tools > Page Info > Permissions
* Check that images are enabled: Tools > Options > Content: [X] Load images automatically
* Check the exceptions in Tools > Options > Content: Load Images > Exceptions
* Check the "Tools > Page Info > Media" tab for blocked images (scroll through all the images)
There are also extensions (Tools > Add-ons > Extensions) that can block images.
* [[Troubleshooting extensions and themes]] -
I urgently need a contact email for the sales team can anybody help me with this
I urgently need a contact email for the sales team regarding an outstanding query, can anybody help me with this please? Thanks in advance.
Hello
Welcome to the EE Community! I'm afraid there isn't an e-mail you can contact the EE Mobile Sales team on, but here's how you can get in touch with them:
If you're on Twitter, you can tweet them @EE, however If you'd prefer to talk to someone, you can dial:
150 from your EE mobile phone
If you're ringing from another phone, it's 01707 315000
For handy text codes & more, check out this page: http://ee.co.uk/help/get-in-touch Cheers,
Titanium
Was my post helpful? Please take 2 seconds to hit the 'Kudos' button below
Maybe you are looking for
-
Just want to know why Apple have not made an options menu to remove duplicate photos in iPhoto? I know about downloads you can purchase to delete Dups, but I'm very interested to find out from apple themselves as to why they left this out, to die wit
-
Printing Purchase Order from ME9F using custom program and smartform
I was able to use my custom program which calls a smartform to print purchase orders from transaction ME9F. I did this using transaction NACE. However, when I call "Output Message" from ME9F, the output always fails (shown by an 'X' icon after the ch
-
NAS Harddisk Time Machine Backup
Is it possible to create a backup of external harddrives which are connected to a AirPort Extreme with Time Machine? Thanks for your help!
-
how do i fix this??
-
Hi, I have given the requests to Oracle EBS R12 for bulk upload/download thru Login as 'Sysadmin'-->Functional Administrator-->File Manager-->Upload/Download. But the Requests on Oracle forms-->View-->Requests-->Searching-->All requests. But all the