ASA HELP PLZZZZ!!

Help GUYZ i just want an advise since I am the one responsible on configuring our new cisco asa
ASA version 8.2(5)
WEB server ip = 10.0.246.5
the scenario was that we have a web server on the inside segment then I wanted to allow only http to the outside
somehow we can call it dmz however we only need inside and outside interface
therefore since I only configure the interface on the ASA and clear my access list and nat since it doesn't work and at least someone can provide me a good access list and a nat rule
on interface giga0/1
name if inside (so it means the inside segment where the server is located)
ip add 10.0.246.12 255.255.255.240
sec 100
and
interface giga0/3
name if outside
ip add x.x.x.92 255.255.255.248
sec 0
route outside 0.0.0.0 0.0.0.0 x.x.x.89
and here is my old access-list config and nat but didn't work I don't know why
access-lsit web_http extended permit tcp host 10.0.246.5 eq www any
and nat
static (inside,outside) tcp interface www access-list web_http
can anyone help me here
tnx guys I need help as soon as possible
because were going live

now i fixed the servers gateway but still it not work
i don't know why seeing the logs it alow the tcp connection of the outside going to inside port 80
how ever still when i issued show nat
it doesn't show translate hits always untraslated wait let me post my command here running config for the moment
ASA Version 8.2(5)
hostname XXXXXXX
domain-name XXXXXXXXXX
enable password XXXXXXXX. encrypted
passwd XXXXXXXX. encrypted
names
interface GigabitEthernet0/0
nameif inside
security-level 100
ip address 10.0.246.12 255.255.255.240
ospf cost 10
interface GigabitEthernet0/1
shutdown
no nameif
no security-level
no ip address
interface GigabitEthernet0/2
description LAN/STATE Failover Interface
interface GigabitEthernet0/3
nameif outside
security-level 0
ip address X.X.X.92 255.255.255.248
ospf cost 10
interface Management0/0
nameif management
security-level 100
ip address 192.168.1.1 255.255.255.0
ospf cost 10
management-only
ftp mode passive
clock timezone PHST 8
dns server-group DefaultDNS
domain-name XXXXXXXX
access-list web_http extended permit tcp any host X.X.X.93 eq www log
access-list web_http extended deny ip any any log
pager lines 24
logging enable
logging buffered debugging
logging asdm informational
logging host inside 10.0.246.6
logging host inside 10.0.246.5
logging permit-hostdown
mtu inside 1500
mtu outside 1500
mtu management 1500
ip verify reverse-path interface outside
failover
failover lan unit primary
failover lan interface failoverif GigabitEthernet0/2
failover key *****
failover link failoverif GigabitEthernet0/2
failover interface ip failoverif 192.168.2.1 255.255.255.252 standby 192.168.2.2
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
no nat-control
static (inside,outside) X.X.X.93 10.0.246.5 netmask 255.255.255.255
access-group web_http in interface outside
route outside 0.0.0.0 0.0.0.0 X.X.X.89 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
http server enable
http 192.168.1.0 255.255.255.0 management
http 0.0.0.0 0.0.0.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
telnet 0.0.0.0 0.0.0.0 inside
telnet 192.168.1.0 255.255.255.0 management
telnet 0.0.0.0 0.0.0.0 management
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address 192.168.1.2-192.168.1.254 management
dhcpd enable management
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
ntp server 10.0.246.6 source inside
ntp server 10.0.246.5 source inside
webvpn
class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
  message-length maximum client auto
  message-length maximum 512
policy-map global_policy
class inspection_default
  inspect dns preset_dns_map
  inspect ftp
  inspect h323 h225
  inspect h323 ras
  inspect rsh
  inspect rtsp
  inspect esmtp
  inspect sqlnet
  inspect skinny
  inspect sunrpc
  inspect xdmcp
  inspect sip
  inspect netbios
  inspect tftp
  inspect ip-options
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:6f0b30e7b433d1812c28623d218cc552
: end

Similar Messages

  • Hi...i have a real problem i keep getting in game when i want ot buy something ...ur purchase could not be for assistance contact itunes suppocompleted rt any help plzzzz????

    hi...i have a real problem i keep getting in game when i want ot buy something ...ur purchase could not be for assistance contact itunes suppocompleted rt any help plzzzz????

    Slow down, take a deep breath and start over. Use complete sentences so your thoughts are lucid.

  • Java script not working..help plzzzz

    i am trying to do the following but not getting the result..help me plzzz
    admin.jsp
    <html>
    <script language="JavaScript">
    function compare()
    var name1;
    var pwd1;
    var repwd1;
    name1=name.value;
    out.println(name1);
    </script>
    <body>
    <%@ page language="java" import="java.sql.*,java.text.SimpleDateFormat,java.util.*" %>
    <%
    String staff=request.getParameter("staff");
    if ("add".equals(staff))
    %>
    <p>Name<input type ="text" name="name" size="10"></p>
    <p>Password<input type ="text" name="pwd" size="10"></p>
    <p>Re-enter password<input type ="text" name="repwd" size="10"></p>
    <p>Accesslevel<input type ="text" name="Name" size="10">
    <input type="submit" name="b1" value=" Go " onClick="compare()">
    <%}%>
    </body>
    </html>
    i cannot pass the text value to the javascript function...why?..help me plzzzz.

    This is not a javascript forum, but you may want to look up something called document.getElementById().

  • :( I Just can't get this code to work (Help plzzzz)

    I was assigned a final exam project, but most of the stuff we never actually saw in class, so I just have to figure it out for myself.
    The part I'm stucked in (among other stuff) is:
    room = new JLabel[4];
    selec = new JRadioButton[4];
    roomg= new ButtonGroup();
             for(int i = 0; i < 4; i++) {
                  room[i] = new JLabel(arean);
              selec[i] = new JRadioButton();
              selec[i].addActionListener(this);
              areap.add(room[i]);
              areap.add(selec[i]);
              roomg.add(selec[i]);
              areap.setBorder(new TitledBorder(""+arean[i]));
    This part of the code successfully created a group of JRadioButtons each with the names previously established in arean[ ]. However, I'm supposed to make it so that whenever I press any of the RadioButtons, the border of the JPanel changes as well. As it is, Java will put only the last name, and won't change it as I click the different JRadioButtons.
    I'm not sure if I made myself clear, so if anyone is interested in helping me and needs further information, plz let me know.
    Thanks in advance.
    Message was edited by:
    SmaSh_

    If it's an array of Strings of area names, then the
    append to an empty string in this line of code:
                  areap.setBorder(new TitledBorder(""+arean)); is extraneous (as
    well as being a nasty idiom anyway, IMHO). I see
    that you removed it in your example...
    I agree that the empty string is a nasty idiom (hence my removal of it).  I figured arean had to be an array of Strings, if it is passed to the JLabel constructor (because toString on an Icon would probably be usely).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I need HELP PLZZZZ!!!

    ok i am making a website for a friend who is paying me for this job. he has a page that is flash that includes a lot of buttons! the code i have is this:
    stop();
    import flash.events.MouseEvent;
    button1.addEventListener(MouseEvent.CLICK,button1Clicked);
    button2.addEventListener(MouseEvent.CLICK,button2Clicked);
    button3.addEventListener(MouseEvent.CLICK,button3Clicked);
    button4.addEventListener(MouseEvent.CLICK,button4Clicked);
    buttonLS1.addEventListener(MouseEvent.CLICK,buttonLS1Clicked);
    buttonLS2.addEventListener(MouseEvent.CLICK,buttonLS2Clicked);
    buttonLS3.addEventListener(MouseEvent.CLICK,buttonLS3Clicked);
    buttonLS4.addEventListener(MouseEvent.CLICK,buttonLS4Clicked);
    buttonLW13.addEventListener(MouseEvent.CLICK,buttonLW1Clicked);
    buttonLW23.addEventListener(MouseEvent.CLICK,buttonLW2Clicked);
    buttonLW33.addEventListener(MouseEvent.CLICK,buttonLW3Clicked);
    buttonLW43.addEventListener(MouseEvent.CLICK,buttonLW4Clicked);
    buttonLW53.addEventListener(MouseEvent.CLICK,buttonLW5Clicked);
    buttonLW63.addEventListener(MouseEvent.CLICK,buttonLW6Clicked);
    buttonLW73.addEventListener(MouseEvent.CLICK,buttonLW7Clicked);
    buttonLW83.addEventListener(MouseEvent.CLICK,buttonLW8Clicked);
    buttonLW93.addEventListener(MouseEvent.CLICK,buttonLW9Clicked);
    buttonLW103.addEventListener(MouseEvent.CLICK,buttonLW10Clicked);
    buttonLW113.addEventListener(MouseEvent.CLICK,buttonLW11Clicked);
    buttonLW123.addEventListener(MouseEvent.CLICK,buttonLW12Clicked);
    buttonLI1.addEventListener(MouseEvent.CLICK,buttonLI1Clicked);
    buttonLI21.addEventListener(MouseEvent.CLICK,buttonLI2Clicked);
    buttonHC1.addEventListener(MouseEvent.CLICK,buttonHC1Clicked);
    buttonHC2.addEventListener(MouseEvent.CLICK,buttonHC2Clicked);
    buttonHC3.addEventListener(MouseEvent.CLICK,buttonHC3Clicked);
    buttonHC4.addEventListener(MouseEvent.CLICK,buttonHC4Clicked);
    buttonHC5.addEventListener(MouseEvent.CLICK,buttonHC5Clicked);
    buttonHC6.addEventListener(MouseEvent.CLICK,buttonHC6Clicked);
    buttonHC7.addEventListener(MouseEvent.CLICK,buttonHC7Clicked);
    buttonHC8.addEventListener(MouseEvent.CLICK,buttonHC8Clicked);
    function button1Clicked(event:MouseEvent):void
    gotoAndStop("button11");
    function button2Clicked(event:MouseEvent):void
    gotoAndStop("button21");
    function button3Clicked(event:MouseEvent):void
    gotoAndStop("button31");
    function button4Clicked(event:MouseEvent):void
    gotoAndStop('button41');
    function buttonLS1Clicked(event:MouseEvent):void
    gotoAndStop("buttonLS12");
    function buttonLS2Clicked(event:MouseEvent):void
    gotoAndStop("buttonLS22");
    function buttonLS3Clicked(event:MouseEvent):void
    gotoAndStop("buttonLS32");
    function buttonLS4Clicked(event:MouseEvent):void
    gotoAndStop("buttonLS42");
    function buttonLW1Clicked(event:MouseEvent):void
    gotoAndStop("buttonLW11");
    function buttonLW2Clicked(event:MouseEvent):void
    gotoAndStop("buttonLW21");
    function buttonLW3Clicked(event:MouseEvent):void
    gotoAndStop("buttonLW31");
    function buttonLW4Clicked(event:MouseEvent):void
    gotoAndStop("buttonLW41");
    function buttonLW5Clicked(event:MouseEvent):void
    gotoAndStop("buttonLW51");
    function buttonLW6Clicked(event:MouseEvent):void
    gotoAndStop("buttonLW61");
    function buttonLW7Clicked(event:MouseEvent):void
    gotoAndStop("buttonLW71");
    function buttonLW8Clicked(event:MouseEvent):void
    gotoAndStop("buttonLW81");
    function buttonLW9Clicked(event:MouseEvent):void
    gotoAndStop("buttonLW91");
    function buttonLW10Clicked(event:MouseEvent):void
    gotoAndStop("buttonLW101");
    function buttonLW11Clicked(event:MouseEvent):void
    gotoAndStop("buttonLW111");
    function buttonLW12Clicked(event:MouseEvent):void
    gotoAndStop("buttonLW121");
    function buttonLI1Clicked(event:MouseEvent):void
    gotoAndStop("buttonLI11");
    function buttonLI2Clicked(event:MouseEvent):void
    gotoAndStop("buttonLI21");
    function buttonHC1Clicked(event:MouseEvent):void
    gotoAndStop("buttonLC11");
    function buttonHC2Clicked(event:MouseEvent):void
    gotoAndStop("buttonLC21");
    function buttonHC3Clicked(event:MouseEvent):void
    gotoAndStop("buttonLC31");
    function buttonHC4Clicked(event:MouseEvent):void
    gotoAndStop("buttonLC41");
    function buttonHC5Clicked(event:MouseEvent):void
    gotoAndStop("buttonLC51");
    function buttonHC6Clicked(event:MouseEvent):void
    gotoAndStop("buttonLC61");
    function buttonHC7Clicked(event:MouseEvent):void
    gotoAndStop("buttonLC71");
    function buttonHC8Clicked(event:MouseEvent):void
    gotoAndStop("buttonLC81");
    but i still keep getting an error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Untitled_fla::MainTimeline/frame1()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Untitled_fla::MainTimeline/frame1()
    at flash.display::MovieClip/gotoAndStop()
    at Untitled_fla::MainTimeline/button1Clicked()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Untitled_fla::MainTimeline/frame1()
    at flash.display::MovieClip/gotoAndStop()
    at Untitled_fla::MainTimeline/button1Clicked()
    If anyone can please help i am really in need of help! i have to finish this website today!!

    I think you missed out buttonLW2 movieclip
    try using this code and tell me the result.
    if(buttonLW2!=null)
    buttonLW2.addEventListener(MouseEvent.CLICK,buttonLW2Clicked);

  • Trying to conver string to date...help plzzzz

    hi,
    i am trying to insert a date value into a dbtable ..but i canot convert string(from a text box) variable to date..i can insert a date value if i am giving it directly into the insert query..i used the following code
    <html>
    <body>
    <%@ page language="java" import="java.sql.*,java.text.SimpleDateFormat" %>
    <%
    SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
    String s=request.getParameter("dateofbirth");
    Date myDate = dateFormat.parse(s);
    PreparedStatement st=con.prepareStatement("insert into table1 (refno,idno,dob) values (?,?,?)");
    st.setDate(3,myDate);
    st.executeUpdate();
    %></body>
    </html>
    the above code is wrking if i give "PreparedStatement st=con.prepareStatement("insert into table1 (refno,idno,dob) values (?,?,'19-10-208')");
    plzzz help me to sort out this.....wats wrong with my code????????
    thanks

    ashish1234 wrote:
    thanksss 4 ur replyyyy...its wrked out....thanks alotttYour keyboard seems defective. Some keys stick and other ones don't seem to work. I'm sure you didn't actually mean to type all those non-words.

  • Podcast cover art doesn't sync. Stuck at an old cover art. Help PLZZZZ?

    Hi. The Podcast cover art doesn't sync. Its stuck at an old cover art from the previous played episodes. I believe it's showing the cover art from the first available episode even though each episode has a different cover art. Any help would be appreciated.  Thanks a lot. :)

    iTunes is looking for a feed at http://feeds.feedburner.com/RogueArrowPodcast . The reason this does not work is that the media file URLs are feedproxy ones which do not end with an extension, e.g. .mp3, so iTunes doesn't recognize them as media files and does not display the episodes. You need to provide a direct URL to the media files.
    As to the other feed, the image URL leads to a Photobucket web page hosting the image. This obviously won't work and you need to provide a direct link to the image. The actual URL is
    http://i714.photobucket.com/albums/ww146/amazingbass/Podcasts/RogueArrowiTunes.p ng
    However the image is 1024 x 1024 - it must be 1400 x 1400 (and less than 500kB which it is at the moment).
    If you submit this feed it will end up as an entirely separate podcast, entitled 'Autologicool Test Feed'. You need to correct the image and then substitute the code in the original feed from which the Feedburner feed is drawn.

  • MY app world is not working HELP PLZZZZ

    Every time I creat bb ID It can't logon every time msg ' an error occured plz try again later ' I tried to make several ID s and logon but nothing happened. Plz help as I want to use it and not to be useless like this, plz if the solution is to redownload app world again tell me how to do this and how to delete the old one. , thanks in advace hope to solve m problem
    Cherry

    Yuppiiiiiiiiiiii , I JUST DID IT 
    this troubleshooting for BB 7 mine is curve9300 6 bundle 2475 can't be updated for 7 as it says " no updates available, it's up to date" .and the options > device doesn't contain anything related to the bb ID.
    I replaced the app on my device from www.blackberry.com/appworld/download with a newer version, proceed with rebooting. then BB identity is required to be installed
    it will ask for rebooting or restarting  just proceeeed 
    IT WORKS 
    Thanks ,,,
    Cherry

  • Script AS 1.0 for AS 2.0 - Help PLZZZZ

    Please how do I convert the code down from AS 1.0 to AS 2.0??
    onClipEvent (mouseDown) {
    if (k> 0)
    return;
    zoom = true;
    dir == 1? (Dir =- 1): (dir = 1);
    if (dir == 1)
    pt = {x: _root._xmouse, y: _root._ymouse};
    onClipEvent (enterFrame) {
    if (! zoom)
    return;
    _root._xscale + = dir * k * 50 / 8;
    _root._yscale + = dir * k * 50 / 8;
    var pt2 = {x: pt.x, y: pt.y};
    _root.localToGlobal (pt2);
    _root._x -= (pt2.x-pt.x);
    _root._y -= (pt2.y-pt.y);
    k + +;
    if (k == 8)
    zoom = false;
    k = 0;
    File link: http://downloads.flashkit.com/movies/Effects/Other/Auto_zoo-T_Norman-6578/Auto_zoo-T_Norma n-6578.zip

    How u have created database , if u have used DBCA then it must have asked with either u want to give password for all user or u want to use one password for all user.I think there isn't default user scott with the case of 10g but i am sure there is user SYSTEM , so remember what option u have chosen and then go through it.
    Thanks
    Tinku

  • Need an urgent help plzzzz

    My torch 9800 had battery low and was shut down then doesn't open again after recharging, it keeps showing loading sign without opening....what to do? ((

    Please don't let you Blackberry to discharge completely. Further I would recommend you to Boot your handheld in safe mode and un-install all un necessary 3rd party apps, if any.
    Safe mode booting procedure:
    http://btsc.webapps.blackberry.com/btsc/viewdocume​nt.do?externalId=KB17877&sliceId=2&cmd=displayKC&d​...

  • Cant register my Gen 3 nano itunes cuts of the screen help plzzzz

    everytime i plug my nano in it says i have to resgister it but itunes cuts the registry thing off and it wont let me accept the terms of use agreement and therefore i cannot use my nano.
    Any answers plz help

    umm srry kinda new to all this how would i do that?

  • HT4946 back up restore help

    can anyone help me plz!!!!!!
    i backed my whole data up on to itunes from my iphone 4 yesterday because i was taking my phone for realir to an apple store but when i got there...they gave me a new iphone so when i came back i tried restoring my back to my iphone it goes through as if everytin is gna be back on to my iphone but afta 15minz of waiting for it.... wen i go on to my phone to check if i have got evryting back but i realise i just have my contacts back but nothing else so i spent whole of the day trying to figure out how can i get it back but havnt found a solution because on the itunes it says this iphone was backed up yesterday at 11:52 wich the day is right and the time is right so why cant i get my appz,photoz and games back for which i downloaded from app store???? can anyone help plzzzz??????

    You can restore from iCloud
    Restore from iCloud Backup
    1. Erase all contents and settings (Settings>General>Reset>Erase all content and settings)
    2. You'll be asked twice to confirm
    3. You'll see Apple logo and progress bar
    4. You'll see a big iPad logo on screen
    5. Configuration start
    6. Set language
    7. Set country
    8. Enable Location Service
    9. Select network, enter password and join network
    10. You'll be given 3 options (a) Setup as New iPad (b) Restore from iCloud Backup (c) Restore from iTune Backup
    11. Selected Restore from iCloud Backup
    12. You'll be required to enter Apple ID and Password
    13. Agree to Terms and Conditions
    14. Select Backup file
    15. You'll see progress bar
    16. Red slider will appear; slide to unlock; step #1 to #16 is fast
    17. Pre-installed apps will be restored first
    18. Message: Purchased apps and media will now be automatically downloaded
    19. You'll see a pageful of apps with Waiting/Loading/Installing
    20. When the restore process is complete, your device will restart. You should connect the device to iTunes to sync data not contained in the backup (such as music, videos, apps, and so on).

  • Excise Indicator issue

    Dear Gurus,
    In our company we are following TAXINN and our Plant and regular Customers are applicable for Excise.
    If Customer is Excise relevant, in J1ID, under 'Customer Excise Details' we assign 'Customer Excise Indicator' as '1' and if not relevant for Excise, we assign the indicator '3'. Same is the case for the Plant.
    For regular Customer and regular Plant the combination under 'Excise Indicator for Plant and Customer' is 1 : 1 = 1.
    For SEZ customers and regular Plant, the combination is 3 : 1 = 3  (combination is not relevant for Excise).
    Now my issue is after maintaining like this and maintaining normal Excise condition record for BED as 8%, how to make the system take zero Excise duty for SEZ customer only?
    Though Excise Indicator '3' is given, where are we saying to the system that if Excise Indicator is '3', then pick zero value for calculation purpose in Pricing Procedure of Sales Order?
    What is the configuration I am missing? Help me with this, as it is an immediate issue for me.
    Best regards and thanks in advance.

    DearAA,
    If I am not totally wrong, Customer Tax classification is for Sales Tax (which is maintained in CMR under Billing Tab in Sales Area Data screen) and nothing to do with Excise duties. I need to change the Excise duties differently for different customers of the same group, distribution channel and division.
    Dear Prashanth,
    I am not doing Exports or Deemed exports, ya, I realise I gave wrong information regarding SEZ. I meant to say that if the customer is like SEZ customer who is not liable for Excise duties, how to prevent the system from populating excise values in the pricing procedure. My customers are not SEZ customers, but regular Dealers, who have Excise exemption due to some special circumstances.
    Any help plzzzz . . .

  • Query related to session tracking

    how to transfer a data inserted in a textbox to another html page..
    thats is
    page1.html
    <form method="post" action="new.jsp" >
    <input type="text" name="refno">
    <input type="submit" name="b1" value="Save & Continue" >
    In new.jsp i wrote the code to save it in a database table..
    when pressing the save & continue button i need to go another html page which should display the refno i entered in the page1.html.
    then only i can save the details in new table ...
    how can i do that help plzzzz...Is this something related to session...

    ashish1234 wrote:
    how to transfer a data inserted in a textbox to another html page..
    In new.jsp i wrote the code to save it in a database table..Not a good idea. JSPs are for formatting HTML, dealing with form input data is better done in a servlet, which then forwards to a JSP to generate a response.
    >
    when pressing the save & continue button i need to go another html page which should display the refno i entered in the page1.html.
    then only i can save the details in new table ...
    Not generally. You need to take the text which is passed from the first form as a parameter and pass it to the JSP to insert in the HTML for the next form returned.
    A servlet should handle to form return, get the text and other parameters from the request and store them as attributes in the request object, which the JSP then picks up and inserts in the text.
    If the form starts to get complex you use a Java bean with a property for each field on the form, called a "data transfer object". The servlet loads this bean from the data returned by the form, validates and processes it, then passes it as a request attribute to the JSP which generates the HTML containing the data.
    These days serious JSPs tend to use a tag library such as JSTL to handle the variable output, which will simplify this kind of process and avoid any java "scriptlets" in the JSP.

  • Java program to perform binary addition,subtraction and modulus.

    i am a newbie to java and require ur urgent help plzzzz.
    i wanna perform binary addition,subtraction and modulus operation between two numbers of 512 bit without using java functions i.e by simple logics of control statements.i need to convert two 512 bit numbers passed as string into binary form, and then perform addition,subtraction and modulus operations on these two binary numbers and finally dipaly the result in decimal format.
    i think we may use full adder binary logic in this!!!
    please send me the java coding for these three operations as urgent as possible on my email.
    i would be highly obliged.
    thanks.
    sheetal.

    i have managed to make this code myself but i wanna learn the basics...so plz help me guyz...
    this is the code:
    package bytearrayopeations;
    import java.math.BigInteger;
    * @author sheetalb
    public class binaryadding {
    public static void main(String[] args) {
    BigInteger a = new BigInteger("123456");
    BigInteger b = new BigInteger("5121");
    String bb1 = a.toString(2);
    String bb2 = b.toString(2);
    String ss1 = null;
    String ss2 = null;
    String result = "";
    String carry="0";
    System.out.println("first value=" +bb1);
    System.out.println("second value=" +bb2);
    int k=bb1.length();
    int h=bb2.length();
    System.out.println("length 1="+ k);
    System.out.println("length 2=" +h);
    int p=h-k;
    //System.out.println("difference=" +p);
    int q=k-h;
    //System.out.println("difference 2=" +q);
    if(h==k)
    else if(h>k)
    for(int i=0;i<p;i++)
    bb1="0"+bb1;
    System.out.println("new value of first=" +bb1);   
    else if(h<k)
    for(int i=0;i<q;i++)
    bb2="0"+bb2;
    System.out.println("new value of second=" +bb2);
    StringBuffer sb1=new StringBuffer(bb1);
         StringBuffer sb2=new StringBuffer(bb2);
    bb1=sb1.reverse().toString();
         bb2=sb2.reverse().toString();
    //System.out.println("rev. buffer1=" +bb1);
    //System.out.println("rev. buffer2=" +bb2);
    for(int i=0;i<bb1.length();i++)
    ss1=bb1.substring(i,i+1);
    ss2=bb2.substring(i,i+1);
    System.out.println("value1=" + ss1 + " " + "value2=" + ss2);
    if (ss1.equals("0") && ss2.equals("0"))
    if (carry.equals("0"))
    result+="0";
    else
    result+="1";
    else if (ss1.equals("1") && ss2.equals("1"))
    if (carry.equals("0"))
    result+="0";
              carry="1";
              else
                   result+="1";
                   carry="1";
    else if (ss1.equals("0") && ss2.equals("1"))
    if (carry.equals("0"))
         result+="1";
                   carry="0";
                        else
                        result+="0";
    carry="1";
    else if (ss1.equals("1") && ss2.equals("0"))
    if (carry.equals("0"))
    result+="1";
    carry="0";
                   else
    result+="0";
    carry="1";
    System.out.println("sum=" result " " + "carry" + carry);
    result+=carry;
    StringBuffer sb3=new StringBuffer(result);
    result=sb3.reverse().toString();
    System.out.println("result is " +result); 
    System.out.println("Binary = "+ result + ", Decimal = "+Integer.parseInt(result,2));
    plz reply nw...

Maybe you are looking for

  • XP_DELETE_FILE NOT WORKING IN SQL SERVER 2005 SP2

    Hi All, I have one job in sql 2005 sp2 that deletes backup older than one week.It is not working.I have checked service account permissions on backup folder and all required permissions and authentications are in place.Please let me know how to troub

  • Error in displaying master page content in overflowing pages

    Hi All, I am having a master page with logo, bill to party address and item details. The logo and bill to party are in a separate sub form of the master page and the item details are in the design view of the page. My problem is when the item details

  • Using iChat from Dubai

    I'm a new Mac user, and I'm trying to get into the Apple way of doing things! One of the hurdles that I need to overcome is with iChat; I've been trying to get onto iChat from Dubai without success. I'm connecting to the internet via Etisalat's broad

  • Sequence creation in DB

    I Want to store collection id in a table column through a sequence The sequence should start from CL00001 , CL00002 , etc Can we write a sequence in which it includes alphabets also

  • Codec support - lots of problems

    I've got 37 avi files from the same camcorder, taken within minutes of each other. I can import them all into Organizer and play them all in Organizer. But when I try to play or drag/drop them onto the timeline in PE8, it compains that the video code