Who can explain me about why 0x1000 = 4096?
Why is that 0x1000 = 4096 which is 2^12
0x0100 = 256 which is 2^8
0x0010 = 16 which is 2^4
0x0001 = 1 which is 2^0 (and obvious to me)?
I always thought it is supposed to be in : 2^3, 2^2, 2^1, 2^0 schema.
Thank you.
Gene
You've used some kind of bizarre adaptation of binary, and frankly, you've mangled it.
Have another go at it like this:
0x1000 = 4096 which is 16^3
0x0100 = 256 which is 16^2
0x0010 = 16 which is 16^1
0x0001 = 1 which is 16^0 Or if we were using binary...
100000 = 32 which is 2^5
010000 = 16 which is 2^4
001000 = 8 which is 2^3
000100 = 4 which is 2^2
000010 = 2 which is 2^1
000001 = 1 which is 2^0(I think, and I might be making this up, that you can denote a binary number with the prefix %... ie %100 = 4)
Cheers,
Radish21
Similar Messages
-
HT201195 Who can I call about getting help with redeeming my iTunes card?
Title is pretty self explanatory: Who can I call about getting help with redeeming my iTunes card?
There isn't a phone number for iTunes Support, you can contact them via this page (you will probably need to give them images of the front and back of the card, and possibly its receipt) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes
-
Who can explain inner class to me?
//InheritInner.java
//Inheriting an inner class
class WithInner
class Inner{
Inner()
{System.out.println("Inner class");
WithInner()
{System.out.println("WithInner");}
public class InheritInner extends WithInner.Inner
//!InheritInner(){}//Won't compile
InheritInner(WithInner wi)
wi.super();
public static void main(String[] args)
WithInner wi=new WithInner();
InheritInner ii=new InheritInner(wi);
Who can explain this subclass constructor to me?
I appreciate your help!Here's the class that in 'Thinking in Java'. For some reason, yours is completely different.
//: InheritInner.java
// Inheriting an inner class
class WithInner {
class Inner {}
public class InheritInner
extends WithInner.Inner {
//! InheritInner() {} // Won't compile
InheritInner(WithInner wi) {
wi.super();
public static void main(String[] args) {
WithInner wi = new WithInner();
InheritInner ii = new InheritInner(wi); -
Who can explain the message server string in the OSS connection ?
Who can explain the message server string in the OSS connection ?
For example:
MSG SERVER FIELD IS:
/H/128.168.0.28/S/sapdp99/H/194.39.131.34/S/sapdp99/H/oss001
What is the mean to each field in the string?
What does the first "/H" mean?
What does the second "/H" mean?
What does the third "/H" mean?
What does the first "/S" mean?
What does the second "/S" mean?
What does "/oss001" mean?
Thanks .Hi,
when you define techinacal settings in tcode OSS1
Transaction OSS1 -> Parameter -> Technical Settings -> Change -> Save. The SAPOSS destination is only automatically updated when you save.
/H indicate server
/S indicate Service
check following SAP note
Note 33135 - Guidelines for OSS1
regards,
kaushal -
Who can I contact about my iTunes U Application status?
We have submitted an application for iTunes U for our teaching hospitals. Saint Barnabas Health Care System in New Jersey. It's been after 14 days, and we have not heard back yet. Who can I contact about our iTunes U application status? We are located in New Jersey.
In another post it was suggested to send an email to [email protected] That might be worth a try, anyway.
Regards. -
Who can teach me about Pages? Should I sign up for a one on one session?
Start here:
http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=15&sid=268154425f16e 4299b123ac226d11fc9&mforum=iworktipsntrick
Peter -
Who can I call about the email message to change my password when I haven't requested this
Who can I call about email messages to change my password when I have not requested this
See my reply to your earlier post.
-
Who can tell me about the plugin bug
The Plugin
X-Plane 10/Resources/plugins/shrink-wrap.plugin/mac.xpl.
on my iMac 27' refuse to start because my iMac 27' system is blocking it.
Who can tell me why this blocade and
What can I do abot?I need more details about the exception and where it occurs in your program.
Also, the protocol trace with your mail server might help. (See the JavaMail
FAQ.)
BTW, you should probably use the setText method instead of setContent. -
Who can explain vod hds-vod ?
In fms.ini
VOD_COMMON_DIR = d:\Program Files\Adobe\Flash Media Server 4.5\webroot\vod
VOD_DIR = d:\Program Files\Adobe\Flash Media Server 4.5\applications\vod\media
In Apache httpd.conf
DocumentRoot "../webroot"
<Location /vod>
HttpStreamingContentPath "../webroot/vod"
</Location>
<Location /hls-vod>
HttpStreamingContentPath "../webroot/vod"
</Location>
Which path is used, when I used "http://localhost:8134/vod/xxx.mp4" to play?
I change the path to
<Location /vod>
HttpStreamingContentPath "D:\"
</Location>
There have no file In the path "D:\" .
I used "http://localhost:8134/vod/xxx.mp4" to play, why the player still play the xxx.mp4?
I am confused.
Who can help me to explain these path mean?
thanks!http://localhost:8134/vod/mp4:xxx.mp4
-
Who can tell me about his forms2adf experience?
Hello!
Why is forms2adf not part of the evaluation version? This makes no sense to me. It is hard for me to convince my chef, to buy a software and I can't even tell him, if we will need it or not. All the reports and demos on forms2adf look very nice, but I have to see how it works with our forms implementations.
What exactly is happening when forms2adf does the conversion? Did I understand it correct that forms2adf does the following things.
1. Create jsp pages based on the forms canvas
2. Create the ADF task flows
3. Create the ADF Datacontrols Model
4. Create the ADF BC EO, VO and AppModule
5. Copy all the plsql code from forms into the database
Does anyone have experience with forms2adf and can tell me about his experience?
Greetings
TobiTobi,
I will get back to you later with a longer reply, there is a lot of "misperception" around forms2adf.
Regarding the functionality: 1) to 4): correct, 5) not correct, we only copy the PL/SQL code as documentation nodes to the application definition editor.
You might want to check out chapter 13 of the JHeadstart Developers guide:
http://download.oracle.com/consulting/jhsdevguide1111.pdf
Steven Davelaar,
JHeadstart team. -
There is a purchase on my iTunes account made yesterday. I DID NOT make this purchase, but the 'Report a Problem' feature is not working. I am following the directions from the Help section accurately. When I logged in though, it said I needed to change my password because of suspicious activity. Who can I contact?
Hello,
I woke up today around 9:30 am UK Time, checked my emails on my phone and then started playing "Talking Ginger" kids game because of one of the offers, around 10:00 I noticed an email alert on top of my iphone screen about itunes receipt.
When I opened this, it was about "Kids Song Collection" purchase reciept for £1:49.
I was shocked because first of all my 3 years old daughter is sleeping, secondly I have security settings configured in iphone with a complex password to purchase and she does not know that password and thirdly I am using the phone and I know I didn't even open App Store or that app so how come this has happened. I did a search on google about how to report and tried to follow the process through itunes but every time I click on "report a problem in itunes" this opens a new apple page in firefox "http://www.apple.com/uk/support/itunes/"
Whilst further browsing Purchase History in itunes I also noticed another purchase from yesterday about "FireWorks Arcade" and this was unbelieveable because I didn't even receive any receipt yesterday about that purchase and again I am the only one who can make purchases due to the complex password known only to myself.
I am not sure what is going on here, but clearly as per today's incident it seems that apple is loosing their control.
Please advise what can be done here. -
Who can explain how EJB connect to Oracle9i DB with DataSource?
I have taken 4 days into this problem. I am developing EJB with J2EE1.3 and Oracle9i DB, I can connect to DB in code with DriverManager. But I want to use DataSource to connect to DB. I failed, I can not get new way to resolve it when I after try to connect with javax.sql.DataSource, oracle.jdbc.pool.OracleDataSource and oracle.jdbc.pool.OracleConnectionPoolDataSource.
I have got different Exceptions when I coding different ways:
one is:
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: U
nable to connect to database. com.sun.enterprise.resource.JdbcDataSource; nested
exception is:
javax.ejb.EJBException: Unable to connect to database. com.sun.enterpris
e.resource.JdbcDataSource
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
connect to database. com.sun.enterprise.resource.JdbcDataSource; nested excepti
on is:
javax.ejb.EJBException: Unable to connect to database. com.sun.enterpris
e.resource.JdbcDataSource
javax.ejb.EJBException: Unable to connect to database. com.sun.enterprise.resour
ce.JdbcDataSource
<<no stack trace available>>
the Other is:
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: U
nable to connect to database. makeConnection:Io Exception: Connection refused(DESCRIP
TION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4)
))); nested exception is:
javax.ejb.EJBException: Unable to connect to database. makeConnection:Io
Exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_
STACK=(ERROR=(CODE=12505)(EMFI=4))))
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
connect to database. makeConnection:Io Exception: Connection refused(DESCRIPTION=(TM
P=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4)))); nes
ted exception is:
javax.ejb.EJBException: Unable to connect to database. makeConnection:Io
Exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_
STACK=(ERROR=(CODE=12505)(EMFI=4))))
javax.ejb.EJBException: Unable to connect to database. makeConnection:Io Exception: C
onnection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(E
RROR=(CODE=12505)(EMFI=4))))
<<no stack trace available>>
My codes related are:
private void makeConnection() throws NamingException, SQLException {
try{
InitialContext ic = new InitialContext();
OracleConnectionPoolDataSource ocpds = (OracleConnectionPoolDataSource) ic.lookup(dbName);
PooledConnection pc = ocpds.getPooledConnection();
con = pc.getConnection();
}catch(SQLException ex){
throw new SQLException("makeConnection:" + ex.getMessage());
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
con = DriverManager.getConnection(
"jdbc:oracle:thin:@172.28.200.43:1521:shcd",
"lijun", "xiaotian"); */
public void setEntityContext(EntityContext context) {
this.context = context;
try {
makeConnection();
} catch (Exception ex) {
throw new EJBException("Unable to connect to database. " +
ex.getMessage());
I believe I set JNDI and config EJB right, because I can run it with Cloudscape DB all right.
who can tell me where is my WRONG, or tell me how to connect to Oracle9i DB?Hi Jhlijun,
I am facing the same problem at the moment. However, I am not using a pooled connection. The following is my code. I am trying to connect a stateless session bean to an Oracle 9i database with result being fed back to a jsp page.
package Test;
import javax.naming.*;
import java.sql.*;
import java.util.*;
import javax.ejb.*;
import javax.sql.DataSource;
import javax.sql.*;
public class TestSessionEJBbean extends java.lang.Object implements javax.ejb.SessionBean
String q="Select NAMETITLE,NAMEFIRST,NAMELAST from People where PeopleRSN<100";
protected boolean create() throws java.lang.Exception
return true;
public TestSessionEJBbean()
{ // EJB constructors don't have a server context.
private void unhandledEvent( String listenerName, String methodName, java.lang.Object event )
// method for interface javax.ejb.SessionBean
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException
// To Do
// method for interface javax.ejb.SessionBean
public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException
// To Do
// method for interface javax.ejb.SessionBean
public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException
// To Do
// method for interface javax.ejb.SessionBean
public void setSessionContext( javax.ejb.SessionContext parm0 ) throws javax.ejb.EJBException, java.rmi.RemoteException
this._sessionContext = parm0; // generated helper code
// To Do
* Test Method
public String Test() throws javax.ejb.EJBException
return "Hi! I am the SessionEjbBean.";
* Session Context of this EJB.
* Set in 'setSessionContext()' before any 'ejbCreate()' is executed.
private javax.ejb.SessionContext _sessionContext;
* ejbCreate Method
public void ejbCreate() throws javax.ejb.EJBException, javax.ejb.CreateException
try {
create(); // This 'create()' is used for internal initialization.
catch( java.lang.Exception __e) {
System.err.println( __e.toString() + " " + __e.getMessage() );
// TODO: implement
* getDBConnection Method
public sun.jdbc.rowset.CachedRowSet getDBConnection() throws javax.ejb.EJBException
String testPrint = "Starting...";//Only to check output
Connection conn;
sun.jdbc.rowset.CachedRowSet crset=null;
try {
testPrint += "before new InitialContext()....";//Only to check output
InitialContext ic = new InitialContext();
DataSource ds = (DataSource)ic.lookup("java:comp/env/jdbc/coquit");
testPrint += "before ds.getConnection()....";//Only to check output
conn = ds.getConnection("coquit","coquit");
testPrint += "before conn.createStatement()....";
Statement stmt=conn.createStatement();
testPrint += "before stmt.executeQuery(....)";
ResultSet rset = stmt.executeQuery(q);
testPrint += "before new sun.jdbc.rowset.CachedRowSet()";
crset = new sun.jdbc.rowset.CachedRowSet();
testPrint += "before crset.populate(rset)";
crset.populate(rset);
rset.close();
stmt.close();
conn.close();
} catch (NamingException ne) {
System.out.println("TestSessionEJBbean::getDBConnection Naming Exception " + ne);
}catch (Exception e){
System.out.println(testPrint+"...TestSessionEJBbean::getDBConnectionException" + e);
System.out.println("\n\n");
e.printStackTrace();
return crset; -
Topic: Who can explain how EJB connect to Oracle9i DB with DataSource?
I have taken 4 days into this problem. I am developing EJB with
J2EE1.3 and Oracle9i DB, I can connect to DB in code with
DriverManager. But I want to use DataSource to connect to DB. I
failed, I can not get new way to resolve it when I after try to
connect with javax.sql.DataSource,
oracle.jdbc.pool.OracleDataSource and
oracle.jdbc.pool.OracleConnectionPoolDataSource.
I have got different Exceptions when I coding different ways:
one is:
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server
thread; nested exception is:
java.rmi.RemoteException: nested exception is:
javax.ejb.EJBException: Unable to connect to database.
com.sun.enterprise.resource.JdbcDataSource; nested
exception is:
javax.ejb.EJBException: Unable to connect to database.
com.sun.enterprise.resource.JdbcDataSource
java.rmi.RemoteException: nested exception is:
javax.ejb.EJBException: Unable to
connect to database. com.sun.enterprise.resource.JdbcDataSource;
nested exception is:
javax.ejb.EJBException: Unable to connect to database.
com.sun.enterprise.resource.JdbcDataSource
javax.ejb.EJBException: Unable to connect to database.
com.sun.enterprise.resource.JdbcDataSource
<<no stack trace available>>
the Other is:
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server
thread; nested exception is:
java.rmi.RemoteException: nested exception is:
javax.ejb.EJBException: Unable to connect to database.
makeConnection:Io Exception: Connection refused(DESCRIPTION=
(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=
(CODE=12505)(EMFI=4)
))); nested exception is:
javax.ejb.EJBException: Unable to connect to database.
makeConnection:Io
Exception: Connection refused(DESCRIPTION=(TMP=)
(VSNNUM=150999297)(ERR=12505)(ERROR_
STACK=(ERROR=(CODE=12505)(EMFI=4))))
java.rmi.RemoteException: nested exception is:
javax.ejb.EJBException: Unable to
connect to database. makeConnection:Io Exception: Connection
refused(DESCRIPTION=(TM
P=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)
(EMFI=4)))); nested exception is:
javax.ejb.EJBException: Unable to connect to database.
makeConnection:Io
Exception: Connection refused(DESCRIPTION=(TMP=)
(VSNNUM=150999297)(ERR=12505)(ERROR_
STACK=(ERROR=(CODE=12505)(EMFI=4))))
javax.ejb.EJBException: Unable to connect to database.
makeConnection:Io Exception: C
onnection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)
(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
<<no stack trace available>>
My codes related are:
private void makeConnection() throws NamingException,
SQLException {
try{
InitialContext ic = new InitialContext();
OracleConnectionPoolDataSource ocpds =
(OracleConnectionPoolDataSource) ic.lookup(dbName);
PooledConnection pc = ocpds.getPooledConnection();
con = pc.getConnection();
}catch(SQLException ex){
throw new SQLException("makeConnection:" + ex.getMessage());
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
con = DriverManager.getConnection(
"jdbc:oracle:thin:@172.28.200.43:1521:shcd",
"lijun", "xiaotian"); */
public void setEntityContext(EntityContext context) {
this.context = context;
try {
makeConnection();
} catch (Exception ex) {
throw new EJBException("Unable to connect to database. " +
ex.getMessage());
I believe I set JNDI and config EJB right, because I can run it
with Cloudscape DB all right.
who can tell me where is my WRONG, or tell me how to connect to
Oracle9i DB?Hi,
on small thing to check (or perhaps do):
Make sure that you are using the JDBC drivers from the Oracle9i
DB client e.g. copy the classes12.jar from the ORACLE_HOME of
the database client into OC4J_HOME lib.
Also, one thing that might help is to define an explict Oracle
datasource e.g.
- Set class to value of Oracle DataSource class
- Use only the location logical name
- Returns Oracle implementation of java.sql.Connection
<data-source
class="oracle.jdbc.pool.OracleDataSource"
name="jdbc/oracle/PooledDS"
location="jdbc/oracle/PooledDS"
username="scott"
password="tiger"
url="jdbc:oracle:thin:@<host>:<port>:<SID>"
/>
Andy -
A silver dollar for anyone who can explain Mail 'Get Messages' failure
Mail 6.2 (build 1499) on a very stable 10.8.2.
No settings changed in the last 6 months; no accounts added (etc) in the last 30 days; same ISP (Time Warner - have reset my cable modem etc).
Until a couple of days or so ago, Get Mail (top left) took at most 5 seconds to retrieve all POP3 mail from the dozen or so accounts I have with three or four hosts.
Now, every time I try to collect from all my accounts that way, one or more of them fails.
Every tme. Different accounts, which means different of the hosts.
Right-clicking on the single account(s) with the triangle exclamation point and selecting 'Get new mail from…' immediately afterwards invariably works instantly.
What can it be about the act of collecting all mail that fails when from individual accounts/separate hosts one at a time it succeeds?
Thanks!Try a reset first: hold down the home button along with the power button until you see the Apple, then let go.
-
Any danes who can explain what this is about.
Got this message from controlling the disc....
Kontrollerer enheden “Macintosh HD”
Kontrollerer HFS Plus-enhed.
Kontrollerer Extents Overflow-arkiv.
Kontrollerer katalogarkiv.
Kontrollerer arkiver med mange forbindelser.
Kontrollerer kataloghierarkiet.
Kontrollerer arkivet Extended Attributes.
Kontrollerer enhedens bitmap.
Enhedens bit map kræver en mindre reparation
Kontrollerer oplysninger om enheden.
Ugyldigt antal ledige blokke på enhed
(Det burde være 14099383 i stedet for 14096227)
Enheden Macintosh HD skal repareres.
Fejl: Den underliggende opgave rapporterede en fejl ved ****
1 HFS-enhed undersøgt
Enheder skal repareresHi snetiger,
Have you installed the "Battery Update" from the Apple site? Has the battery been replaced through the battery program? Check the Magsafe plug. Is it melting? Do you have access to another charger to eliminate a bad charger? Does the orange charge light coming on or the green power adapter mode light? Have you unplugged the charger from the wall for about 60 secs. (if no lights, this resets charger) What are your energy saver preferences set to?
I have been dealing with this battery issue across three different machines. I think it is a time formatting issue with the software. Keep an eye on the clock. Most of my worst issues have always occurs when the battery is "Calculating Until Full" this can go on for a while unless I unplug the Magsafe or open energy saver. Just opening it not having to change any settings.
Sweet Polly
Maybe you are looking for
-
My iMac is authorised to play iTunes content, but my Apple TV keeps asking for me to authorise and I am unable to view content from my iTunes Library. How can I convince my Apple TV that I am authorised?
-
How do I erase my computer without an install disk?
I just got a new macbook, and am looking to give my old one away. I am running OSX 10.5.8, and I want to erase all of my personal data, programs and settings without losing the OS. Is that possible? All of the instructions I've found for wiping the m
-
Problem during output of smartform in PDF
Hi All, I am using Function module for output of smartform in PDF Format.But it is giving following informatio -OTF end command // missing in OTF data. and then no data in pdf format. Could you please help me whar shoul I do for that? MY code is like
-
Af:query unusual behavior 11.1.1.4.0
JDeveloper 11.1.1.4.0 Hi, I'm experiencing unusual behavior in an af:query object. I have two variables VariableClientId and VariableCan in a view object's view criteria. When I run the form in Weblogic to test it, the af:query shows not only the two
-
Hello, This query it taking very long time to get the result SELECT a.cusip, a.price, a.pricedate, a.dateupdated, a.pricesource, a.vendor FROM pam.mhfspric a, select a.cusip, a.pricesource, max(a.pricedate) pricedate from pam.mh