Yes, but I am receiving un-correlated values, how to get 133 instead of -123 - I mean what modifications or things I have to do at the end?
Kujtim Hyseni
Posts
-
C to Java translation -
C to Java translationHow do you mean, can you explain me more ?
-
C to Java translationWhen I translate the C code to C# it works fine because in both C and C# there is unsigned 8 bit integer type "byte" (values from 0 to 255) while in Java "byte" is signed 8 bit integer (values from -128 to 127). What operations might have effect when signed used instead of unsigned?
-
C to Java translationHi, is there a reliable tool which can convert completely a C code to Java. C code contains only bit operations such AND, OR ... XOR, addition, subtraction and like and is not dependent on particular library. The tool should convert the code completely i.e. without my intervention after translation.
-
Code to convert from C# to Java (with goto)I am afraid that I can't rewrite the code since it is ported from 8051 assembler to C#. I thought we could do something with
if/else
to
goto
?
-
Code to convert from C# to Java (with goto)Hello, I have the following code in C#:
public void encrypt()
{
SeaX11:
...
if (Cnt != 47) goto SeaX12; //cjne Cnt,#47,SeaX12 ;when halfway through, swap keys, other key schedule and other key used
goto SeaX21; //ljmp SeaX21SeaX12: ... goto SeaX11; //ljmp SeaX11 SeaX21: ... if (Cnt != 1) goto SeaX22; //cjne Cnt,#1,SeaX22 goto SeaX23; //sjmp SeaX23 SeaX22: goto SeaX21; //ljmp SeaX21 SeaX23: return;
}
to convert in Java. Can anyone help with this?
-
Variable not updatedHere are the details of the problem: I have a class MISPSerial (instance named ms) which deals for stream of bytes to arrive via serial port. In my class which contains the main method I wait for the variable (ms.isDataReady) in MISPSerial which tells that the stream is received completely. So my main method waits for the stream to be received and then continues with instructions that follow. What would you suggest?
-
Variable not updatedWhat do you suggest instead ... ?
-
Variable not updatedIt changes somewhere else but it doesn't affects the change in while in other words it doesn't appears changed, unless I use a tricky solution so instead of
while(!ms.isDataReady);
I put
while(!ms.isDataReady) Thread.sleep(1);
-
Variable not updatedHello, I have a code which checks some variable which has to be changed from false to true in other class, but, even if it changes it does not appears. More details, I have the code:
ms.isDataReady = false;
...
while(!ms.isDataReady);the loop while waits forever in my main method even if
ms.isDataReady
becomes true in
ms
's appropriate method. What I should do?
-
Username/password protected databaseI need to secure only one particular database in SQL Server so I could access it only with certain predefined username/password. So, I am login in SQL Server as windows authenticated or sa and see all databases with details, but, for one database I want to see her in list but cannot access further without user/pass.
-
CheckedChanged doesn't firesHello, in my ASP .NET page I have created check box double clicked it, it then created,
chbCalcPrim_CheckedChanged
method but it never fires. I am changing the state of it i.e. in checked or unchecked but that method is never executed. What is the problem, should I use any script?
-
Other Serial Port (COM) library in Javajschell wrote:
I am also curious what "sometimes" means? Does that mean on one computer this sometimes happens? Or that on many computers this sometimes happens?
No, it does not depends on computer but on ports. I had installed bluetooth which occupied few ports for which listing (identifying: more precisely an instruction
CommPortIdentifier.getPortIdentifiers();
) RXTX took around four minutes. But when I uninstalled bluetooth and manually deleted (from Device Manager) the ports, the newly installed port for communication with my microcontroller could be identified "in a moment".
-
Other Serial Port (COM) library in JavaHello the standard RXTX (http://rxtx.qbang.org/[^]) communication library is not suitable because priory to occupying the specified port it lists all available ports is the system. This is time consuming because sometimes it delays up to 4 (four) minutes to list the ports. Is there any other library which lets to assign (occupy) the specified port directly by giving its name without listing all the ports in the system?
-
Java SE or EEHello, I am in doubt whether to install Java SE or EE. SE is newer in version than EE, but I need EE because I plan to work with web services. In other words EE edition I found comes with Java 6, while SE with Java 7 (I found EE with 7 but named Web Profile). Here are the links I plan to use, for SE http://java.com/en/download/index.jsp[^] and EE http://www.oracle.com/technetwork/java/javaee/downloads/index.html[^]. What do you suggest (which one to install or how to combine if possible)?
-
Cannot Register New Server in SQL Server 2008And ... ?
-
How to secure a database?You didn't provided solution, that is just an article of capabilities. I need short and precise guide. By the way, I don't use MySQL nor Oracle.
-
How to secure a database?Can you give any details (how to consider another database)?
-
How to secure a database?Hi, I want to secure a database in SQL Server 2008. Here is the situation description: I am using both 'windows' and 'sa' authentication. When I create a database (logged as 'windows' authenticated) I can see and change it (create tables, stored procedures) from logged as 'sa' authentication or vice versa. So, there is no difference whether I create it logged as 'windows' or 'sa'. But, what I need is to secure a particular database i.e. even if I am logged as 'windows' I want the particular database to be accessed only by providing a username and password. Do you have any idea how to resolve this?
-
Cannot Register New Server in SQL Server 2008Yes I hit 'test' but I got the following message: ------------------- Testing the registered server failed. Verify the server name, login credntials, and database, and then click Test again. Additional information: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40- Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53) Yes I am using Windows authentication (in fact I can login via 'sa' also).