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.
Related
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.
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.
i am new in java applet ...
where can i learn more about java applet (related to asp.net) and is it possible to use java applet in asp.net without installing java run time ?
mean is there a library for java on the net that we can refer it ?
(how ?)
for example how can i use below java applet codes without forcing my users to install some thing on their machines?
How to find client computer name in java script/jsp?
mean JĂșlio Santos answer
thanks in advance
The example you mentioned uses ActiveX (built into IE) and JScript (also built into IE). You do not need the Java Virtual Machine to be installed for that.
In general, running a Java Applet in ASP.NET does not make sense because Applets are client side (they run in the browser) while ASP.NET is (mainly) server side. You can use IKVM to compile the Applet into something .NET understands but that basically gives you access to its public methods which may or may not help depending on your use case.
Here's how you can have IE auto install the JVM runtime: http://java.sun.com/developer/technicalArticles/JavaLP/javawebstart/AutoInstall.html
You cannot use Java without having the runtime installed.
The easiest way to do so, is to let the user navigate to java.com.
I browsed internet but haven't found my answer... as I'm running out of ideas, I'd appreciate some help on this issue.
So here it is:
I have some PHP code that takes a path to a file and returns a bunch of information that i need.
I have the source code (it is open source), and i know my C#.
My problem is i want to be able to use this PHP code from a C# application, offline, emulating the PHP code.
Any ideas?
Thanks.
If you really must, you can always launch the PHP interpreter from C# by spawning a process. I'll leave the details to MSDN. Better, though, would be to just translate the PHP to C# by hand.
You could set up a PHP server on the local machine and invoke the file using an HTTP request created with c# (such as with the WebRequest object). This satisfies the requirement of working offline and since you have the PHP code, you can make minor modifications to accommodate whatever parameters you need to pass into it.
However unless this is for an isolated case in a controlled environment, I would not suggest it.
If this is for distribution to user machines it would be a) impractical to deploy and b) a maintenance nightmare. If you are running on a server and rewriting the PHP in c# is not an option, it should get the job done.
It sounds like to either wish to
Translate the PHP code to C#
Call the PHP code from .NET
???
I don't think emulation is the term you're looking for, exactly.
If you can link to the PHP code (if it's OSS, is there a site with more information?) or paste it here, we can probably let you know the best way to handle this.
If you don't want to translate the PHP code into C# then you must invoke the PHP interpreter.
First, look at the license on the PHP code you would be using. When I looked at the code earlier I noticed that all but one PHP file had a GNU GPL license on it. GNU GPL should work for what you want, but I recommend that you review the GNU GPL if you haven't done so already. You should also look into what license is supposed to be applied to the last file before continuing.
Second, rewrite the entry file. The file in question is upload_file.php. This file loads the other files as includes, parses the SC2 replay file, and generates an output for use by a web browser. You just need to rewrite this file to have it output a simplified version of its output to the console. You might have it receive the name of the replay file from command line arguments. The other files that are marked as GNU GPL can just be copied directly into your project. I should also say here that there may already be a console version. Take a minute to look around for one.
Third, write a C# application. Invoke the PHP interpreter telling it the what file to interpret, and the name of the replay file to parse. You will need to redirect the console output from your PHP instance into your C# code to be able to read the output.
Fourth, read the output.
Fifth, parse the output for use in your C# application.
Old thread but figured it could use an answer.
You could use the codeplex Phalanger. http://phalanger.codeplex.com/ It allows you to take existing php files and compile them to .net
I was wondering if it's possible to write Firefox extension using .Net Framework?
Had anybody such experience in writing Firefox extensions using C# programming language?
Any good sites or guidelines would be very helpful.
FFPlugin http://img81.imageshack.us/img81/3049/ffplugin.jpg
Here is an example of what I need. Extension to enter phone number and to send SMS Message.
I draw it in Paint, so I'm sorry for having no artistic touch.
Assuming you're asking about writing an extension (and not a plugin), the best place to get started is with the info at the Mozilla Dev Center.
Konamiman is correct: extensions are mostly XUL (an XML grammar) and Javascript, packaged into a ZIP file with the extension .xpi. The various links from the page I linked should answer basic questions, like the one you posted above:
https://developer.mozilla.org/en/Building_an_Extension
https://developer.mozilla.org/en/Extension_Frequently_Asked_Questions
Firefox extensions are written primarily in Javascript. See here: http://www.rietta.com/firefox/Tutorial/backend.html. So unless you can find a way to convert C# code/.NET Framework objects to Javascript, you are out of luck.
As has been observed by other respondents, Firefox extensions are primarily written in Javascript: but you're in luck, because Script# is a free tool that enables developers to author C# source code and subsequently 'compile' it into Javascript.
I'm not sure how you'd do for C#, but you can use XPCOM to call native code libraries: that's how the Glasser extension, for instance, is able to use the Windows-specific Aero effects.
IBM hosts a very good XPCOM tutorial at DeveloperWorks.