Communication between Windows-phone-7, MYSQL-database and PHP, using JSON-array? - c#

I'd like to have a simple connection between my MYSQL-database using PHP and JSON-arrays. I want to both send and receive data to database by using the Phone-7 app.
Anyone who has a good solution for using this type of communication for building a Phone7 application? I know how to do this in Android, but i don't know if it's possible to do the same using Phone7 developer SDK (Visual Studio, Express for Windows Phone).
I will program in Visual C#, Windows Phone Application.
If you have any solutions, please show me both Visual C#, PHP and JSON snippets!

I would look into using RestSharp for the communication. Should be easy enough for you to write a C# API for your service with this.
Your question is somewhat vague. I mean, Java and C# aren't that different when it comes to REST requestions, and parsing JSON. It's something you have libraries for in both languages, and besides that you just create the entities you wish to (de)serialize to.

Related

VBScript with HTML frontend

this is my first thread here and I am trying to be as accurate as possible. Furthermore I am not a native speaker so I am sorry in advance for any spelling or grammar mistakes.
I've just started working on a project to automate the parameterization of Siemens drives with the software Siemens Starter v4.4.
The project description is to write some VB-Scripts to set values in the Starter software and to have an html frontend for the user.
The problem is, that my company is always using the most recent Internet Explorer version. But unfortunetly VBS can only interface correctly with IE10 or lower.
Therefore I am wondering if it is possible to have a standalone IE10 portable installation next to the required scripts. The problem as far as I know is to access the objects used for the communication of IE and VBS.
Of course I am open for any other method of creating a simple frontend.
I am not a professional developer and have to teach myself. Despite of that I have some programming experience in C, C++, C# and VBS. Therefore I would appreciate a solution where I can find some online help and documentation for.
Thank you in advance.

Enterprise custom field input by look up to external data MS Project Server

Hi i want to set a project custom field input like autocomplete look up from external data / external lists.
I am using MS Project Server 2013 system which in Sharepoint platform.
Actually, I have plan by modifying MS Project Server solution starter which made for custom field can look up from user group data. I have tried but it is difficult to change many things.
Is there any easiest way? Or maybe there is custom solution that has been made?
Please explain in simple way in c# programming or maybe javascript.
I'm not sure if there are any new features for that in 2013, but we synchronize external sources into Lookup tables assigned to Enterprise Custom Fields. We do that using PSI service MSDN Doc. And we do that using C# because only .NET supports DataSets which are the main data container to communicate with a Project Server through PSI

Embed C# or PHP code in Cognos

Sorry for this newbie type question. I am not a Cognos developer.
Is there a way to embed C# or PHP code in Cognos? I tried putting some PHP code in a HTML block but that didn't work. Our Cognos installation is on IIS 7.
And what are you trying to achieve with PHP or C#? People usually use Javascript in reports, but if you want to use other languages like PHP, you can try out Cognos Mashup Services.
http://www.ibm.com/developerworks/data/library/techarticle/dm-1001cognosmashup/
Be aware, you need to have an SDK license to use it (at least needed the last time I check). Maybe worth running this through IBM rep.

How can I Access an already existing SQLite database in mono for android

I'm currently working on a project where the application I'm creating needs to include a database. I've got no problems so far creating my own SQLite database from my application and accessing it is not a problem either. The problem for me is accessing an already existing database that I've included in the assets of the application.
I've seen many examples of solutions online where this is done by copying the database to the /files folder and then used something called SQLiteOpenHelper, which seems like a good solution. However, they've all been using Java so far and since I'm using C# (developing in Xamarin-studio which uses Xamarin.Android a.k.a. mono for android) those solutions doesn't really work for me.
Could anyone please give me som instructions about how to do this in mono? Or if you now other ways to solve the problem show me how to do those?
Thank you in advance
Have you tried following the Java guides on Xamarin?.
I had a lot of Android/Java experience before starting with Xamarin, and what I've found is that all of the android platform classes and fields are present in Xamarin (with some modifications to include C# naming conventions like camel case, enums, etc). So try following the guides from Java on your Xamarin project and if you hit a problem ask here or at http://forums.xamarin.com/

Retrieve user tweets in windows store app

How can I retrieve all tweets for specific twitter user "#username" in windows store apps?
I would probably consider using an HttpWebRequest to make a call to the Twitter API.
There are a few Tweeter Wrapper around,
Checkout this wrapper : https://github.com/danielcrenna/tweetsharp
TweetSharp is a Twitter API library that greatly simplifies the task
of adding Twitter to your desktop, web, and mobile applications. You
can build simple widgets, or complex application suites using
TweetSharp. The second version, a rewrite, was designed to be lighter,
faster, and more intuitive than the original. You write fewer lines of
code, make fewer decisions, and get better results. Visual Studio T4
templates are employed to automatically generate new API methods from
a simple text-based DSL.
I posted a tutorial about that a couple of days ago. Take a look:
http://www.codeproject.com/Articles/599505/Databind-Twitter-XML-Feed-in-Windows-8
Should explain it :)

Categories