I've found a .NET library to query/write information to Google Tag Manager here:
https://developers.google.com/resources/api-libraries/documentation/tagmanager/v1/csharp/latest/annotated.html
The javascript version goes like this:
Google Tag Manager takes a GTM-id and you push events to a dataLayer array. I'm looking for the same thing, but in .NET, but can't seem to find it.
Does such a thing exist in .NET or does it seem i just can't find it in the documentation?
I'm asking this, because we'd like to send some information to GTM which should not be visible with google chrome's inspect element function or console. This information is private to our company (and GTM). We cannot allow the risk for people to inspect the page source and find revenue values per product (for example)
Related
First off, this is in C# using Unity3D (free, I have no budget for the project). And honestly my skill level for C# is not great, so detailed answers please?
I'm making an app as a news feed for a guild, my only difficulty has been google calendar.
What I need is to be able to get all the events for the month, then separate them into just description and a DateTime for when it occurs, in arrays that are in the same order, so I can sort it into a handmade calendar.
So for example description[2] would be for datetime[2].
If there is an alternative calendar that will fit the circumstance better I can probably get it moved over, but I'll need instructions on how to parse it for the needed information.
Using the google's API I was not able to make it get information without requiring login first, and even after that it tries to get the user's calendar, not a specific public one.
I also tried to parse the XML version of the calendar using system.xml, which also failed and it would not recognize that it had any tags. however if I appended a tag to the start and end of it, I could get the entire thing as if it had no tags (completely useless for what I need).
Mind you I was able to use system.xml fine to parse the forums (with some help from an old how-to in a unity support forum).
I also tried using windows forums web browser thingy, and the gecko version. Unity does not like those at all and they seem to refuse to render, or maybe I'm just using them wrong, I'm not totally sure.
I'm trying to find out what libraries there are out there for streaming live audio to a website.
The current technology stack that I'd like to stay within is...
MVC3/C#
HTML/HTML5
Basically, I'm wanting to build something that will allow the end user to have nothing but their (modern) browser installed and stream the audio. If possible I'd prefer that the same end user interface support previously recorded content as well.
As far as the input side of things I don't care what it uses as long as it's a .net/c# based technology or if not .net/c# I'd need it to be pre-built and capable of sending to a .net endpoint.
I have searched on SO for this topic and have found several posts on the subject, but most were extremely vague and didn't fit within the confines of the tech stack that I have in use (java/flash/etc) so please if you manage to find out be sure that it is actually inline with the question before you link it!
I would suggest you start here at the W3Schools - HTML5 Audio page and implement a C# handler that returns a byte-stream of the audio content for the source tag. Failing that, there are a bunch of JavaScript libraries that should be able to help you implement this properly.
The last one that I linked above ThunderJS, looks promising only because of the introductory line:
Thunder works its magic by creating HTML5 Audio elements with a src value containing a base64 data URI.
You could also check out similar questions here on StackOverflow, because you want to do this client-side so the language of choice isn't as much of an issue...
Maybe start here, or here, or here.
Failing THAT, there's always "the Google" which led me to these, few, lists?
Hope this helps to point you in the right direction. Good luck.
I am trying to fetch some information/data from (IBM) Websphere MQ using C#.
I did manage to get a message, but i can't figure out how to get details about the queue (e.g. are there any items, how many items are contained, etc).
Not Sure if it matter, but i use MQ 6.1 - the online API for c# provided by IBM is quite empty.
Any suggestions welcome.
The information you want is available as queue object properties. Some properties are settable, all are gettable. The app needs to have inquire and/or set rights on the queue in order for these to work.
The link you provided in the comment to Stephen's response is to a different section of the WMQ .Net manual. I suspect you are viewing it with curl or otherwise have script disabled or else you would have easily found the section I linked to above in the navigation panel. Any page loaded in a suitable browser will reload itself inside the navigation frame and display a table of contents on the left. The table of contents will be positioned on the page opened. The section you referenced was to compiling the .Net app but there is a complete API reference elsewhere.
I would recommend viewing the Infocenter in a Javascript-enabled browser with cookies, or else installing the local version of the Infocenter as an Eclipse workbench. The local version has the ability to pull down updates when the online manuals are updated. In either case, a navigation panel is provided which includes the complete set of WMQ manuals and is searchable across all of them, by individual book or by section within a book.
The landing page for WMQ documentation is here. This page contains links to the online Infocenters for v6 and v7, the downloadable Infocenters for v6 & v7 and the PDF versions of the older documentation.
EDIT - The drill-down path to definitions of the constants
From the MQC page readers are directed to the Application Programming Reference manual rather than directly to the MQC docs. However, the page displayed does not represent the whole APRM content! Click the plus sign in the navigation frame to open the TOC for the book.
The page Constants has no content other than to direct the reader to the Constants manual. Unfortunately, it's not linked but the manual is listed in the navigation frame simply as "Constants". Click the plus sign to expand the TOC.
This level contains the major sections of the book, one of which is the detail of all the constants under the heading of "Constants". Clicking that link opens an index page with all of the constants listed and links to a dedicated page for each.
In the past I have used XMS: The IBM Message Service Client for .NET. The current version can be found at: IBM Message Service Client. You can also find a quick tutorial at C# Corner
In general you want to follow the pattern:
MQCONN
MQOPEN the queue
loop
MQGET from the queue
Process the message
end loop
Make sure you specify MQGMO_WAIT on the MQGET call. You don't want to just poll the queue.
I'll try to find some source code when I get to the office.
this is my first visit to stackoverflow and right now I feel very comfortable with this site.
It already helped me to get the FiddlerCore embedded into MS Visual C# 2008 Express Edition.
Just needed to create a reference(Verweis) to the fiddlercore dll from Project Explorer(Projektmappenexplorer) in MS Visual C# EE. Hope this are the names for it in the english version. After this you can use Fiddler.FiddlerApplication stuff etc.
What is my task?
I want to create a small program which is able to use the FiddlerCore to check the bodies of requests/responds for special JavaScript Code.
This enables the developers to check wether their code is valid in another versions of there Browser (especially from IE 6.x to IE 8.x) or not. To be able to do so, I need to know:
How can I check the content of a requested or responded file for a String?
This must have something to do with the Text View Inspector (Fiddler), but I cannot find a possibility to access it with .net code or within Fiddler which would also help a lot already.
I should be able to finish the remaining stuff with some search by google or stackoverflow.
As this is my first time with .net languages this will be very interesting and demanding.
Take a look at this example. In the BeforeResponse callback a Fiddler.Session is passed as argument. This object has a method called GetResponseBodyAsString. As its name suggest you may try using it to get the response text. There's also a GetRequestBodyAsString method for the request.
I'd like to write custom providers for start menu searching, but I can't seem to find where to begin.
Things I'd like to be able to do when I type in the search box on the start menu
Type "thomas" and see "IM Thomas" (if a Pidgin/whatever-IM-client-with-API contact exists with the name match)
Type "=1+2*3" and see "7", or "=2 gallons in ounces" and see "256"
Anything else I can think up where I have a store of custom data results that could be launched from the start menu. This would be especially useful for custom applications, letting our users type "order XYZ", which would search orders in the application and let the user open them from the start menu.
I'm not looking for a tool to do this for me. Rather, I'd like to find any documentation on writing custom search result providers, ideally in C#.
I believe you are looking for the Windows 7 API Code Pack for .NET.
On a related note, you can add all kinds of searches to your favourites in Windows Explorer. Check out Windows 7 Search Federation Providers.
Scott Hanselman's blog covers how to create a simple search connector by creating .osdx files, which are XML files that configure which URL(s) to invoke with the search terms. He then shows how to enable those connectors from within the start menu itself by adding entries to the registry.
You might want to look into SlickRun a search bar alternate/replacement. While I dont think it can be put in the place of the actual start menu search, going to thier site and getting involved will probably get you a lot closer to where you want to go.
For all I know, the functionality you describe may already be an option.
I just discovered Start++, which has plug-in support (it appears to use JavaScript with Windows Scripting Host).