So I am trying to connect to Apple's Push Notification server with C#.
I asked a question about this here. I was given a Java example. I have tried now (about 50 iterations) and I can't seem to get my C# to do the same thing.
Could someone help me connect to an SSL with C#? Or even better, could someone make a C# equivalent to the Ja...
Hi,
Very simple question but I can't do it. I have 3 classes:
DrawCircle class
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class DrawCircle extends JPanel
{
private int w, h, di, diBig, diSmall, maxRad, xSq, ySq, xPoint, yPoint;
public DrawFrame d;
public DrawCircle()
{
w = 400;
h = 40...
I've trying to streamline an intranet application where some of the data is stored locally on the postgresql database of the intranet server and other related data is stored in our enterprise oracle 10g2r2 database.
What I would like to do is create a view on either database box wouldn't really matter that combines for simplicity sake...
Is it possible to run an Eclipse Plugin outside of Eclipse?
...
I've got a pretty strong background in C-style languages. And have worked on several different types of projects. I have just started taking a serious look at Python after reading Programming Collective Intelligence. I understand that Python can solve any problem that C# can, and vice-versa. But I am curious to know from those who us...
I'm in the process of porting some old C code to Java and, due to my inexperience with Java, I have encountered a problem locating a memmove equivalent. Is there such a method in Java? I've done enough research on it to assume that I'm overlooking something rather obvious. Thanks in advance.
...
how can i map ASCII values to appropriate key codes....?
...
When I try to run the update manager in Eclipse, I get the error "Cannot launch the Update UI. This installation has not been configured properly for Software Updates."
Does anyone know how to fix this?
...
I have a Java nonblocking server that keeps track of all the socket channels in a selector. I then establish 500 connections to the server and send data regularly. Every piece of data the server receives is echoed back to the client.
The problem comes where the test works wonderfully for a couple of hours and then all of the sudden gra...
Hello
I am writing Java program for league sports that goes through current set of played games of each team and their schedules of next games, and then based on that I make a model of flow network. The idea of program is to find which teams are already eliminated and have no chances of wining or sharing 1 place with any other team. Aft...
Hi all,,
I had made my project in J2EE..
I wanted to keep track of who all visited my website,, with some specific information of theirs (for e.g. time they visited, IPAddress etc.. ) How can i do this with the help of java program,,
I can store the information in the database. so what I need is the logic as to how can i retrieve the...
I've been trying to write some very fast Java code that has to do a lot of I/O. I'm using a memory mapped file that returns a ByteBuffer:
public static ByteBuffer byteBufferForFile(String fname){
FileChannel vectorChannel;
ByteBuffer vector;
try {
vectorChannel = new FileInputStream(fname).getChannel();
} catch (...
How can I copy a CharArrayBuffer to another CharArrayBuffer at a specified index in Java on android?
developer.android.com/reference/android/…
CharArrayBuffer stringBuffer1 = new CharArrayBuffer(128);
System.arraycopy("Phone", 0, stringBuffer1.data, 0, "Phone".length());
But i get an ArrayStoreException. I have allocated the CharA...
I have a text area wherein i have limited the user from entering more that 15 characters in one line as I want to get the free flow text separated into substrings of max limit 15 characters and assign each line an order number.
This is what I was doing in my java class:
int interval = 15;
items = new ArrayList();
TextIt...
Hi,
I was scanning a third party source code using Findbugs (just to be cautious before integrating into it mine), and found the following warning:
long a = b << 32 | c
Bug: Integer shift by 32 Pattern id:
ICAST_BAD_SHIFT_AMOUNT, type: BSHIFT,
category: CORRECTNESS
The code performs an integer shift by
a constant amount...
In Visual Studio, when debugging, one can drag the execution point (current instruction pointer, yellow dot) to another place in the current method.
This is impossible in IntelliJ, and some have stated it's generally impossible in Java. Why?
...
after commit of response as here redirect statement should give exception but it is not doing so if this redirect statemnet is in if block.but it does give exception in case it is out of if block.i have shown same statement(with marked stars ) at two places below.can u please tell me reason for it.
protected void doPost(HttpServletR...
I've inherited a piece of code that makes intensive use of String -> byte[] conversions and vice versa for some homegrown serialisation code. Essentially the Java objects know how to convert their constituent parts into Strings which then get converted into a byte[]. Said byte array is then passed through JNI into C++ code that reconstit...
I'm looking for an XML parser that instead of parsing from an InputStream or InputSource will instead allow blocks of text to be pushed into the parser. E.g. I would like to have something like the following:
public class DataReceiver {
private SAXParser parser = //...
private DefaultHandler handler = //...
/**
* Calle...
I have to audit a large web Java/J2ee application that has evolved over several
years. It's been written by some other company, not the one I'm working for. In
it's current state it has become hard to evolve and maintain, new
functionalities are hard to add and often lead to bugs that sometime show up in
production. There seem to be some...