As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have a problem that I need to solve.
I create Youtube videos and every time I'm on the upload page I have to :
remove the ".mp4" extension from every title
change my video category
put the same description in all of the videos
put the same keywords in all of the videos
So, I firstly wanted to create this bot in C#, but I would have to learn C# (I already know C++, but again, I would have to learn all the libraries in C#).
I was wondering if this bot could be created in Javascript (because I already know Javascript) or in any other language that I know (PHP, C++)?
Maybe I can create a Mozilla Firefox extension that does it for me in Javascript? As I said, could someone just tell me in what programming (or scripting) language am I supposed to write this bot?
So, as I said, I would manually log in, bot would just need to access my already opened page in Mozilla Firefox and change that four things.
Thanks in advance!
I would definitely go with javascript on this one. Take a look at GreaseMonkey - Scripting add-on for FireFox, that allows you to add custom javascript code to pages.
I would create a script that does all your needed changes when you call this script.
Or if all these things are on the same page you can use simple bookmarklet that calls javascript and changes these things for you.
I'm not too familiar with video uploading on youtube, so can't help you there, but you mentioned that you are familiar with javascript, so finding input fields with values and changing them shouldn't be too much of a hassle.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am trying to put together a solution for our office to map the cubicle and office layout. We currently have both php and C# applications, so the solution can be built in either. We have something in PHP already, that allows us to move people from one cubicle to another, but it is based off a static image size and point coordinates. For example, cubicle one is at (3px, 4px). While this solution is working, it doesn't allow for the image size to change, or for the image to change at all without significant coding to realign all of the points on the image. Is there a better solution that can be used or an open source library that would be helpful? A coworked suggested that the Google Maps API might be helpful, or Leaflet.js. However, these both use geocoding, so unless our current Lat and Long is accurate to like a foot, I don't see how these could help.
Thanks for any suggestions.
Update
Here is an image similar to the one we are using. We add absolutely positioned clickable divs over the image to show who sits there.
What your co-worker suggested is not so much the GMaps API itself but the implementations of rotations/geosync translation/zoom algorithms that would allow you to flip an image and all the points related to the image.
No specific code implementation, so I can't be more specific.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have a small C# app and I'd like to provide the ability to preview diffs and accept changes. My inputs are only text files. I came across some tools like kdiff3 and winmerge and I was wondering if anyone's integrated them inside a C# app and if yes, how was it done? I also came across some nice projects on CodeProject from an earlier stackoverflow question but since those projects were written in 2004, I was wondering if you have any suggestions for an open source diff and merge tool that I can integrate? Thanks!
Have you checked out csdiff ?
http://code.google.com/p/csdiff/
You might want to checkout DiffPlex. It is (amongst other things) a library that can be used to generate text diffs. It also provides some higher level classes that provide a more complete "diff model" that should be easier to use for rendering diffs in, say, a textbox.
Personally, I have only used it for minor tasks, but it looks powerful enough to handle more sophisticated scenarios as well.
Winmerge, as you mentioned, can be integrated with other apps via the command line. Here's an example of visual studio using these command line parameters to replace the built in diff client. In regards to launching winmerge itself, I found this simple example of how to call an external program from C#.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am developing an application that will automate some tasks for me. The application needs to download an excel file, do some manipulations and write some data to the DB.
I have the excel automation and db writing code done, but I'm having some trouble with the browser automation.
What would be the best way to do the browser automation? What it needs to do is:
Go to a url
Set some dropdownlists
Click a button
save the excel file in the right place.
I have never done browser automation. What would be the best way to get this done?
Depending on the version, Visual Studio 2010 can do this, via the Test tools. (mentioned in case you have a version with the feature but are unaware of it.)
I believe you need either the Test edition or the Ultimate edition for these features.
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/product-comparison
Use a browser automation tool, such as Selenium or WATIR.
These let you script most aspects of browser work (definitely going to a URL, setting form elements and clicking).
If you need full automation, please pick http://watin.org/ for example. For what you write, however, the WebRequest should be enough, you'd only have to sniff requests with any http debugger (like Fiddler) and be able to replay them with web requests.
I would recommend Selenium as well. I use version 2 (WebDriver) extensively for this type of automation. The only problem I see is that the Save File dialog is not something easily driven by Selenium. There are a couple of workarounds out there though. Does the clicking of the button open a dialog for download or is the button just a link to the url containing the download?
Why, What and How of Software Test Automation ?
very nice article see here
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
We have a software which we use in-house for our day to day work.
It is like a customize CRM (sort of) and Bug Tracking software. We had a small team of 3 developers who had developed this software. Now this team is also working on other assignments.
Recently we are receiving a lot of request for adding functionality from users (who are our employees and all of them are developers working of different projects) in our firm. The original team that created this software does not have enough time to work on enhancing this software. So instead of spending a lot of time in updating as per request and the updating the executable of software for each user, we want to implement a programming/scripting solution that is if possible free and open source.
I was thinking of adding support for a language which is similar to C# to our application. This way the developers will add the features that they require on their own in their spare time if they really need a feature!
Can anyone point me to some such implementation already existing?
I don't know if I am taking the right decision or not regarding C# I would like to get opinion of experts on this also.
TIA
The framework already comes with a C# compiler you can use at execution time via CSharpCodeProvider.
You might want to look at the source code to Snippy, a small tool I wrote for C# in Depth - that compiles code on the fly, and can act as a reasonably simple introduction to CSharpCodeProvider.
I think I'd look at a scripting solution here; probably IronPython is the easiest to bundle and host, but others are available (including Javascript.NET, IronRuby, IronScheme, Boo, F#, etc)
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
I am making a website where users can upload pictures and draw on them, add text etc. My team knows some php, but we know nothing about c#. Time is not too much of an issue. We all know java, what would the perks of each be? I have been hearing that c# will be much better for handling the canvas because there is a lot more libraries for it? Will it really matter c# of php? for both you have to use javascript and possibly jquery anyway? Keep in mind we are all more than willing to learn c# and we have a windows server also. Let me know your guys thoughts! Thanks!
If your team already knows PHP, and can already do the work in PHP, I'd stick with what they know. I don't know enough about the differences between the two to give you hard performance numbers, but I would expect that a team already fluent in PHP would do better work with the tool they know rather than learning a new one just because it meets some arbitrary definition of "better."
If your team knows something about PHP, then PHP is probably your best bet hands down.
Personally, I don't know of anything in C# (since it's a web based client, rather than desktop) that would give you an advantage over PHP.
One of the first questions you have to ask when building an application is: how and where will be application be used?
If you're building an intranet application for deployment in a Windows environment, particularly if you want to tie into Active Directory for user authentication, then you should be looking at IIS, and after that ASP.NET, which would lead you in the direction of C# (though PHP can be used as well). If you're looking at deploying your application in a heterogeneous environment, then PHP is a much more portable choice.
If you know java, moving into C# shouldn't be that hard. They are similar and the set of classes that come with Java and .NET Framework are similar, but layed out differently.
I use C# and ASP.NET (usually ASP.NET MVC) for ALL of my new web application development, partly because its what I know, but also I just really don't like php (and I'm not alone).
Thats said, if you're going to be using HTML5/Javascript (you mention canvas) then your backend code will matter less since it will mostly be persisting your data to disk on the server; however, I think that something like Flash or Sliverlight would provide a better end user experience for an on-line image minipulation tool. Either of these can be hosted from a C# web app or a php one.