desktop-application

Hiding MySQL Credentials in Application

為{幸葍}努か 提交于 2019-12-03 21:38:27
问题 I need to create an application for a company and they would like to have people login to the application to have different permissions to perform different tasks. My initial idea was to create a MySQL database, hardcode the credentials into the application and have the application connect to the MySQL database. The MySQL database would then have a table called "users" which would store usernames, passwords and permissions. The application would then query the server and perform the

Getting location in Windows 8 desktop apps

北战南征 提交于 2019-12-03 21:16:46
问题 I am a total beginner at C#, but I have used Java a lot. I am trying to use the following code in my app to get location data. I am making a Windows 8 desktop app to use the GPS sensor in my device: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Devices.Sensors; using Windows.Devices.Geolocation; using Windows.Devices.Geolocation.Geoposition;

YouTube and OAuth 2.0 in .Net

Deadly 提交于 2019-12-03 20:57:47
Does anyone know how to properly authenticate an account using OAuth 2.0 and then use that auth token to access the user's YouTube account? At the end of http://code.google.com/apis/youtube/2.0/developers_guide_protocol_oauth2.html it says The Google Data client libraries that support the YouTube Data API do not currently support OAuth 2.0. However, a newer set of Google API client libraries, which do not support the YouTube Data API, do provide OAuth 2.0 support. As such, it is an option to use these newer libraries, which are listed below, for their OAuth 2.0 capabilities and then force the

Java communication fails through web proxy using Apache HttpClient

北城余情 提交于 2019-12-03 20:16:25
问题 I have a desktop client that sends data to a web server and I can't seem to get through the proxy server. Update : I am getting a 407 HTTP error when trying to communicate through the proxy. When downloading information from my web server, everything is fine. Once the user configures the proxy server (using a dialog box I wrote) the download works fine. But uploading data using org.apache.http.client.HttpClient is not working. I am configuring the proxy server with code like this after

Why is WPF loosing terrain with Silverlight 4 coming? [duplicate]

扶醉桌前 提交于 2019-12-03 16:38:01
This question already has answers here : Closed 9 years ago . Possible Duplicates: What does WPF still have to offer over Silverlight 4? Why change from WPF to Silverlight 4 I'm working on a WPF application. We considered using Silverlight instead of WPF, but decided we want a full blown desktop application with the whole unique desktop application feeling and advantages that gives. However, starting today there has been a lot of buzz out there about Silverlight 4 being announced at PDC09, and people stating that there aren't many arguments left to choose WPF over Silverlight (4). So; what's

Architecture Question: GWT or Vaadin to create Desktop Application?

霸气de小男生 提交于 2019-12-03 15:56:45
We're planning on creating a feedreader as a windows desktop- and iPad application . As we want to be able to show Websites AND to run (our own) JavaScript in this application, we thought about delivering the application as HTML/CSS/JavaScript, just wrapped by some .NET control or a Cocoa Touch webbrowser component. So the task at hand is to find out which framework to use to create the HTML/CSS/JS files to embed in the application. For the development of the HTML/CSS/JavaScript we would be happy to use Vaadin, GWT, or some other framework, as we're a lot better with Java than with JS. We

JavaScript desktop applications?

感情迁移 提交于 2019-12-03 14:22:32
Is it possible to create Windows desktop applications in JavaScript? I am aware of HTA (HTML Application) programs, but was wondering if there were a newer .NET solution where I could make use of the DLL libraries included with Visual Studio. Latest .NET version doesn't have such feature, but you've options to do it: a) A WebBrowserObject in a WPF or Windows Forms application (it'll be an embedded Internet Explorer). b) Opera Widgets, which is a Opera browser-based presentation engine which lets you implement desktop applications with standard Web technologies and it follows the W3C widgets

Right-to-left UI Guidelines?

拜拜、爱过 提交于 2019-12-03 12:50:15
I'm looking into RTL support for a proprietary UI framework (for a desktop app), and I'm wondering: are there guidelines as to how the widget rendering has to change? I'm looking for a list of things like: checkbox labels are on the left of the checkbox, and right-aligned toolbar buttons flow from right to left vertical sliders are on the left sice window decoration ??? ... Generally layout should be mirrored that is horizontally flipped. Apart from controls you already mentioned, obviously radio buttons, combo boxes (aka drop down menus), spins (or up and downs, depending on the terminology)

How to open a browser window from a node-webkit app?

核能气质少年 提交于 2019-12-03 12:42:51
问题 I have a desktop application, packaged using node-webkit. I need to open the default browser of the user on click of a link. I am using window.open("www.google.com") but this opens a new node-webkit window rather than opening a browser window. How do I open a browser window instead?? 回答1: To open a link in the user's default browser, you could use gui.Shell.openExternal("http://website.com") . Checkout the documentation for gui.Shell. 来源: https://stackoverflow.com/questions/19157659/how-to

How to avoid blocking EDT with JPA lazy loading in Swing desktop apps

白昼怎懂夜的黑 提交于 2019-12-03 12:17:13
I'm struggling with real-world use of JPA (Hibernate, EclipseLink, etc) in a Swing desktop application. JPA seems like a great idea, but relies on lazy loading for efficiency. Lazy loading requires the entity manager exist for the lifetime of the entity beans, and offers no control over what thread is used for loading or any way to do the loading in the background while the EDT gets on with other things. Accessing a property that happens to be lazily loaded on the EDT will block your app's UI on database access, without even the opportunity to set a busy cursor. If the app is running on wifi