In an Activity, I need to call a web service every 30 seconds or so, and use the data to update the UI.
Is there a recommended approach on how to schedule a repetitive task?
Thanks
I'm using the windows search 4.0 service (wssql) to find some files, it works fine on my computer but on our server which has two drives C: and D: always returns 0 rows when searching D:
Also i'm not sure if it's related but cd d: goes back to c: in the command prompt.
I have two models (say A and B) which are independent and have independent methods. I want to add some methods that operate on both models though.
for example, addX() will create an object from both models A and B.
What's the best way to structure code in this situation, since it doesnt make sense to have the method belong to either of the models methods. Is the standard to write a service for the kind of 'abstract' model?
Suppose I developed a JavaFX project using netbeans 6.8 (JavaFX SDK plugin installed), and right now I need to convert this JavaFX UI to portlet and display it in a web page.
And I'm only allowed to do this using JDeveloper. So how could I achieve this? I'm using Oracle WebLogic Service as my web application server.
-Regards from Isaac.
Google Latitude does a great job with this, i'm trying to access this information as well.. it seems like their service has a much better way of finding the lat long on phones that don't have the html5 capability..
Thank you in advance.
Hello gurus,
I have a desktop application sending/receiving messages (not files) to/from a WCF service.
How do I intercept the total size of the message to be transferred and receive feedback (number of bytes transferred) during the transmission so a progress bar maybe displayed to the desktop app user?
How many approaches are there? What is the best one given my application scenario?
Any comments or suggestions will be greatly appreciated,
Cullen
How to write Performance Test for .Net application? Does nUnit or any other Testing framework provides framework for this?
Edit: I have to measure performance of WCF Service.
I use clientgen ant task shipped with weblogic to generate web-service clients. Currently I have one different clientgen statement for each wsdl. Is there any possibility do not iterate each wsdl? It will be perfect just set directory where all wsdl live for one clientget statement.
Hello everyone
I have installed xampp 1.7.3. After starting apache and mysql service when I write http://localhost/ in the internet explorer address bar it shows 'The page cannot be displayed'. But for Firefox it creates no problem and shows Xampp index.php page.
Now how can I solve this problem?
Thanks in advance
Soon I'll be launching my new site and i was planning on using gmail as the email server for things like registration and lost password.
I'll be using google apps (free version) so I can have [email protected].
Besides the 500/day limit are there any other potential problems with using gmail for this service?
I converted a VB .Net 3.5 app to use peer to peer WCF using the available Microsoft example of the Chat app. I made sure that I copied the app.config file for the sample(modified the names for my app), added the appropriate references. I followed all the tutorials and added the appropriate tags and structure in my app code. Everything runs without any errors, but the clients only get messages from themselves and not from the other clients. The sample chat application does run just fine with multiple clients. The only difference I could find is that the server on the sample is targeting the framework 2.0, but I assume that is wrong and it is building it in at least 3.0 or the System.ServiceModel reference would break. Is there something that has to be registered that the sample is doing behind the scenes or is the sample a special project type? I am confused. My next step is to copy all my classes and logic from my app to the sample app, but that is likely a lot of work.
Here is my Client App.config:
<client><endpoint name="thldmEndPoint"
address="net.p2p://thldmMesh/thldmServer"
binding="netPeerTcpBinding"
bindingConfiguration="PeerTcpConfig"
contract="THLDM_Client.IGameService"></endpoint></client>
<bindings><netPeerTcpBinding>
<binding name="PeerTcpConfig" port="0">
<security mode="None"></security>
<resolver mode="Custom">
<custom address="net.tcp://localhost/thldmServer" binding="netTcpBinding"
bindingConfiguration="TcpConfig"></custom>
</resolver>
</binding></netPeerTcpBinding>
<netTcpBinding>
<binding name="TcpConfig">
<security mode="None"></security>
</binding>
</netTcpBinding>
</bindings>
Here is my server App.config:
<services>
<service name="System.ServiceModel.PeerResolvers.CustomPeerResolverService">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost/thldmServer"/>
</baseAddresses>
</host>
<endpoint address="net.tcp://localhost/thldmServer"
binding="netTcpBinding"
bindingConfiguration="TcpConfig"
contract="System.ServiceModel.PeerResolvers.IPeerResolverContract">
</endpoint>
</service>
</services>
<bindings>
<netTcpBinding>
<binding name="TcpConfig">
<security mode="None"></security>
</binding>
</netTcpBinding>
</bindings>
Thanks ahead of time.
I have an RIA Service that returns image data (Byte[]) and caption of image (String) from SQL Server.
The data part can sometimes be a few MB's so it can take quite a while to load.
I would like to load the bytes independently of the caption (which loads very fast).
Is there a way to do this without having to create a second image context?
On Windows, it's possible to program an LSP service on top of Winsock which provides the ability to do a lot of manipulation/etc. with networked applications. For instance, some anti virus applications register an LSP and analyse network traffic that way. Is there a friendly way to accomplish the same sort of thing on OSX?
I'm calling an external web service API that returns a timezone as listed in the Olson timezones database (e.g. "America/New_York"). However some of the values the API returned are "US/Pacific", "US/Eastern" and apparently don't match any of the Olson timezones in Rails 2.3.2. Can anyone shed some light on this? Thanks in advance for your help.
I was able to play the audio in background of the application in iPhone. However I would like to know if there is any service that enables the playback of audio after the user exits the application?
I know that SDK 4.0 promises multitasking and background processes of the application. But i would like to know if this is enabled for audio playback in the earlier versions?
Hi All,
I want to modify File/List MetaData of Sharepoint.
For that i am using List.UpdateList method.
But it is Throwing exception:
"Microsoft.Sharepoint.SoapServerException"
I am using Admin account.And using List web Service.
Can i get some good examples of Modifying Metadata of Sharepoint Document using c#(Web Services).
hey everyone, im having some troubles displaying the background image for a GUI interface in java. Here is what i have at the moment, and with current stage of code it shows default(gray) background.
import javax.swing.*;
import java.awt.event.*;
import java.util.Scanner;
import java.awt.*;
import java.io.File;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.IOException;
//////////////////////////////////
// 3nriched Games Presents: //
// MIPS The Mouse!! //
//////////////////////////////////
public class mipsMouseGUI extends JFrame implements ActionListener
{
private static String ThePDub = ("mouse"); //the password
JPasswordField pass;
JPanel panel;
JButton btnEnter;
JLabel lblpdub;
public mipsMouseGUI()
{
BufferedImage image = null;
try
{
//attempts to read picture from the folder
image = ImageIO.read(getClass().getResource("/mousepics/mousepic.png"));
}
catch (IOException e)
{
//catches exceptions
e.printStackTrace();
}
ImagePanel panel = new ImagePanel(new ImageIcon("/mousepics/neonglowOnwill.png").getImage());
setIconImage(image);
//sets icon picture
setTitle("Mips The Mouse Login");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
pass = new JPasswordField(5); //sets password length to 5
pass.setEchoChar('@'); //hide characters as @ symbol
pass.addActionListener(this); //adds action listener
add(panel); //adds panel to frame
btnEnter = new JButton("Enter"); //creates a button
btnEnter.addActionListener(this);// Register the action listener.
lblpdub = new JLabel(" Your Password: "); // label that says enter password
panel.add(lblpdub, BorderLayout.CENTER);// adds label and inputbox
panel.add(pass, BorderLayout.CENTER); // to panel and sets location
panel.add(btnEnter, BorderLayout.CENTER); //adds button to panel
pack(); // packs controls and
setLocationRelativeTo(null); // Implicit "this" if inside JFrame constructor.
setVisible(true);// makes them visible (duh)
}
public void actionPerformed(ActionEvent a)
{
Object source = a.getSource();
//char array that holds password
char[] passy = pass.getPassword();
//characters array to string
String p = new String(passy);
//determines if user entered correct password
if(p.equals(ThePDub))
{
JOptionPane.showMessageDialog(null, "Welcome beta user: USERNAME.");
}
else
JOptionPane.showMessageDialog(null, "You have enter an incorrect password. Please try again.");
}
public class ImagePanel extends JPanel
{
private BufferedImage img;
public ImagePanel(String img)
{
this(new ImageIcon(img).getImage());
}
public ImagePanel(Image img)
{
Dimension size = new Dimension(img.getWidth(null), img.getHeight(null));
}
public void paintComponent(Graphics g)
{
g.drawImage(img, 0, 0, null);
}
}
}
Hi,
I have a Windows Server that recives mail. These mail contains only 1 single CSV file. I want my server to automatically take the attachment from any incoming mail and send to a java program locally installed. Is there anyone who can give me directions on any programs that fix this or do I need to create some kind of windows service?
Thankful for any help!
I'm tossing around a few ideas for travel search engines and I'm wondering how these sites get their source data. Do they scrape all the content from airline homepages? This seems like an enormous job given the number of airlines etc out there.
Is there some API or web service standard that every airline conforms too?
Am I going to have to negotiate access to the data APIs for every airline I wish to index?
Experience says that using WSDL-SOAP based webservice for internal consumption is an overkill. There are too many service-based POJO classes that when let into the system complicates it way too much. One option would be use adapter pattern, map the request/response objects to internal domain classes and . But is it even required? Is there a better approach? What are your suggestions?
We were using FFmpeg which is free. And when a bug occurred that broke the system, a previous developer installed PandaStream.
My question is, what do you recommend for quality video encoders?
Is it best to stick with ffmpeg and keep it free, or does a small website really need a heavy duty service like Panda?
Dears ,
I have a prolblem in my SQL SERVER 2000 ,
the server is so slow when i made any query
and recently i couldn't link with other sql servers
the message is "the server dosen't exists or access id denied"
in spite of that the linked servers were working well and i can access them remotly & the service pack is SP4...
any body can help ..
thanks again.
In my program I generate classes dynamically but when I try:
Class service = Class.forName("com.MyClass");
I recieve java.lang.ClassNotFoundException
If I run one more time the program (in Eclipse), then it is working.
Does anybody see the problem