instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I would like a batch file to launch two separate programs then have the command line window close. Actually, to clarify, I am launching Internet Explorer with two different URLs.
So far I have something like this:
start "~\iexplore.exe" "url1"
start "~\iexplore.exe" "url2"
What I get is one instance of Internet Explor... | stackexchange/codereview |
IIS is literally sending <?php ... ?> code to the browser rather then executing it.
But, only for the root http://domain.com/index.php file.
All other .php files in that folder and index.php files in subfolders execute as expected.
How can I get my root index.php code to execute?
Update: "index.php" is a Default Docu... | stackexchange/codereview |
I am writing a project in C++ for an embedded system with no OS support; almost no library support. Very bare-metal. Hence, a fair amount of my code is tightly coupled(e.g., software triggered interrupts and the layer directly above them).
Part of what I am doing involves changing the serial port configuration, thus dr... | stackexchange/codereview |
I'm trying to determine the asymptotic run-time of one of my algorithms, which uses exponents, but I'm not sure of how exponents are calculated programmatically.
I'm specifically looking for the pow() algorithm used for double-precision, floating point numbers.
| stackexchange/codereview |
I have an Excel application in which I want to present the user with a list of the Data Source Names (ie: DSN's), whereby s/he can choose what data source to use.
Hopefully once I've got the list, I can easily access the DSN properties to connect to the appropriate database.
Please note, I do not want to use a DSN-less... | stackexchange/codereview |
I'd like to upload a photo from my iphone to an arbitrary ftp. How can I do this with Cocoa / Xcode ?
Thanks!
| stackexchange/codereview |
I have a bunch of projects in parallel subdirectories that all have etc/lighttpd.conf files. The files are very simple; they just include a directive that looks like this:
url.rewrite-once = ("^/project(.*)$"=>"project/router.php?args=$1")
Unfortunately, I just discovered that I can't simply loop through them, becaus... | stackexchange/codereview |
I am trying to set my DOS environment variable in Ruby, and have it persist after the script exits. For example, if I want a ruby script set_abc_env.rb to set environment variable 'ABC' to 'blah', I expect to run the following:
C:> echo %ABC%
C:> set_abc_env.rb
C:> echo %ABC% blah
How do I do this?
| stackexchange/codereview |
We have industrial automation application developed in .NET 3.5 framework.
I have to list out the available serial ports in the computer for our user. As part this, if any of the serial port is already opened, I have to show "In Use" status. I tried google but no luck.
Can someone help me please?
Regards,
Krishgy
| stackexchange/codereview |
I'm working on a project where I'm trying to avoid hard-coding DB IDs in a .NET service-oriented project. There are some instances where I need to set ID values through code but I don't want to just hard code the IDs since I've done that before and it lead to DB alignment nightmares when the auto-incrementing IDs were ... | stackexchange/codereview |
I'm trying to write a resolution selection dialog that pops up when a program first starts up. To prevent boring the user, I want to implement the fairly standard feature that you can turn off that dialog with a checkbox, but get it back by holding down the alt key at startup.
Unfortunately, there is no obvious way to ... | stackexchange/codereview |
So C# now allows you to use default(Foo) to get a recognized "not filled in yet"/empty instance of a class -- I'm not sure if it is exactly the same as new Foo() or not. Many library classes also implement a Foo.Empty property, which returns a similar instance. And of course any reference type can point to null. So ... | stackexchange/codereview |
Is there a library or acceptable method for sanitizing the input to an html page?
In this case I have a form with just a name, phone number, and email address.
Code must be C#.
For example:
"<script src='bobs.js'>John Doe</script>" should become "John Doe"
| stackexchange/codereview |
What tools are available for creating in process COM servers in Java?
| stackexchange/codereview |
Originally I thought to ask if there would be an easy way to provide an automatically managed last update field with MS Access.
After some googling I found following approach:
Private Sub Form_Dirty(Cancel As Integer)
Me.Last_Update = Date()
End Sub
Which seems to do the job. I thought I'd share it with others to... | stackexchange/codereview |
I have an application in C# (2.0 running on XP embedded) that is communicating with a 'watchdog' that is implemented as a Windows Service. When the device boots, this service typically takes some time to start. I'd like to check, from my code, if the service is running. How can I accomplish this?
| stackexchange/codereview |
Alright. So I have a very large amount of binary data (let's say, 10GB) distributed over a bunch of files (let's say, 5000) of varying lengths.
I am writing a Java application to process this data, and I wish to institute a good design for the data access. Typically what will happen is such:
One way or another, all ... | stackexchange/codereview |
When creating a class library in C++, you can choose between dynamic (.dll, .so) and static (.lib, .a) libraries. What is the difference between them and when is it appropriate to use which?
| stackexchange/codereview |
Had an interesting discussion with some colleagues about the best scheduling strategies for realtime tasks, but not everyone had a good understanding of the common or useful scheduling strategies.
For your answer, please choose one strategy and go over it in some detail, rather than giving a little info on several stra... | stackexchange/codereview |
Each cell contains some text and a background color. So I have some cells that are blue and some that are red. What function do I use to count the number of red cells?
I have tried =COUNTIF(D3:D9,CELL("color",D3)) with no success (Where D3 is red).
| stackexchange/codereview |
When I turn an image (<img>) into a hyperlink (by wrapping it in <a>), Firefox adds a black border around the image. Safari does not display the same border.
What CSS declaration would be best to eliminate the border?
| stackexchange/codereview |
I know that the .NET framework looks for referenced DLLs in several locations
Global assembly cache (GAC)
Any private paths added to the AppDomain
The current directory of the executing assembly
What order are those locations searched? Is the search for a DLL ceased if a match is found or does it continue through all... | stackexchange/codereview |
We are looking at moving from Visual Studio 2008 Professional to Visual Studio Team System. I believe I've read that the client Development Edition is a superset of what Professional has/does. I'd like to ease into the transition with the client end first, then get the Team Foundation Server up and running later, and I... | stackexchange/codereview |
After my form.Form validates the user input values I pass them to a separate (external) process for further processing. This external process can potentially find further errors in the values.
Is there a way to inject these errors into the already validated form so they can be displayed via the usual form error display... | stackexchange/codereview |
I'm writing an actionscript library for an api. I use a URLLoader object to load data from the api. The problem I'm having is that whenever the api returns an http status in the 400s, actionscript treats this as an io error. This is all find and good, however, it seems like there is no way to access any data that wa... | stackexchange/codereview |
how do I pass additional information to the service method returning the collection of items? I'll attempt to explain what I mean, I have 2 text boxes on a form, I need to fill out names, based of a specific account id in a database. so, I need to pass an integer to the getNamesForDropDown method. I couldn't figure ... | stackexchange/codereview |
Is there a built-in mechanism in .NET to match patterns other than regular expressions (regex)? I'd like to match using Unix-style (glob) wildcards (* = any number of any character).
I'd like to use this for a end-user facing control. I fear that permitting all regex capabilities will be very confusing.
| stackexchange/codereview |
I have a .NET WinForms textbox for a phone number field. After allowing free-form text, I'd like to format the text as a "more readable" phone number after the user leaves the textbox. (Outlook has this feature for phone fields when you create/edit a contact)
1234567 becomes 123-4567
1234567890 becomes (123) 456-7890... | stackexchange/codereview |
This has been driving me crazy. We have IIS (6) and windows 2008 and ActiveState Perl 5.10. For some reason whenever we do a warn or a carp it eventually corrupts the app pool. Of course, that's a pretty big deal since it means that our errors actually cause problems.
This happened with the previous version of Perl ... | stackexchange/codereview |
In an OLAP database I work with there is a 'Location' hierarchy consisting of the levels Company -> Region -> Area -> Site -> Room. I am using the following MDX to get all the descendants of a particular member at company level.
DESCENDANTS([Location].[Test Company],[Location].[Site], SELF_AND_BEFORE)
I now have a req... | stackexchange/codereview |
My .NET application fails when run from a network drive even when the very same executable runs perfectly fine from a local hard drive?
I tried checking for "Full trust" like so:
try
{
// Demand full trust permissions
PermissionSet fullTrust = new PermissionSet( PermissionState.Unrestricted );
fullTrust.Dem... | stackexchange/codereview |
I often use the execv() function in C++, but if some of the arguments are in C++ strings, it annoys me that I cannot do this:
const char *args[4];
args[0] = "/usr/bin/whatever";
args[1] = filename.c_str();
args[2] = someparameter.c_str();
args[3] = 0;
execv(args[0], args);
This doesn't compile because execv() takes ... | stackexchange/codereview |
I'm familiar with the LAMP stack and over the years have successfully deployed a handful of web sties based on it. I've used everything from Apache + modPerl, to PHP, to Ruby and Rails. With good use of caching my Rails site can sustain a pretty good load, but I'm not talking massive.
I never really liked Java as a lan... | stackexchange/codereview |
I have two controllers which share most of their code (but must be, nonetheless, different controllers). The obvious solution (to me, at least) is to create a class, and make the two controllers inherit from it. The thing is... where to put it? Now I have it in app_controller.php, but it's kind of messy there.
| stackexchange/codereview |
I have this Document table with some meta data for the document in it and also the document content as a blob.
then I use lucene.Net to query my documents; which in return gives me a list of Guids to my Document table and also two fields containing the highlighted html versions of the document name and extract with the... | stackexchange/codereview |
How do you create a database backup of a mysql database in VB.Net?
| stackexchange/codereview |
Fixed: See notes at bottom
I am implementing a generic class that supports two features, implicit type conversion and custom equality operators. Well, it supports IN-equality as well, if it does that.
1) if ( "value" = myInstance ) then ...
2) Dim s As String = myInstance
3) Dim s As String = CType(myInstance,String)... | stackexchange/codereview |
What I have now (which successfully loads the plug-in) is this:
Assembly myDLL = Assembly.LoadFrom("my.dll");
IMyClass myPluginObject = myDLL.CreateInstance("MyCorp.IMyClass") as IMyClass;
This only works for a class that has a constructor with no arguments. How do I pass in an argument to a constructor?
| stackexchange/codereview |
I am currently working on a project to convert a number of Excel VBA powered workbooks to VSTO solutions. All of the workbooks will share a number of class libraries and third party assemblies, in fact most of the work is done in the class libraries. I currently have my folder structure laid out like this.
Base
L... | stackexchange/codereview |
I've defined a view with the CCK and View 2 modules. I would like to quickly define a template specific to this view. Is there any tutorial or information on this? What are the files I need to modify?
Here are my findings: (Edited)
In fact, there are two ways to theme a view: the "field" way and the "node" way. In "ed... | stackexchange/codereview |
What do I need to set up and maintain a local CPAN mirror? What scripts and best practices should I be aware of?
| stackexchange/codereview |
Is it possible to use BugzScout in the fogcreek-hosted version of Fogbugz?
| stackexchange/codereview |
I am trying to generate equivalent MD5 hashes in both JavaScript and .Net. Not having done either, I decided to use against a third party calculation - this web site for the word "password". I will add in salts later, but at the moment, I can't get the .net version to match up with the web site's hash:
5f4dcc3b5aa765... | stackexchange/codereview |
I'd like to calculate the age of the messages in an Exchange mailbox to make sure they sit there for at least a minute before our program (C++, MAPI) processes them. This way the spam filter we use should have enough time to do its job.
Because the time on the PC where our program runs might be different from the time ... | stackexchange/codereview |
This is something that I always find a bit hard to explain to others:
Why do XML namespaces exist?
When should we use them and when should we not?
What are the common pitfalls when working with namespaces in XML?
Also, how do they relate to XML schemas? Should XSD schemas always be associated with a namespace?
| stackexchange/codereview |
I need to do a lot of searches of certain patterns in source files while the user is changing them, so I need to do regexp matching that is efficient in time and memory. The pattern repeats itself so should be compiled once, but I need to be able to retrieve subparts (rather than just confirm a match)
I'm considering u... | stackexchange/codereview |
I am using wxWidgets and Visual C++ to create functionality similar to using Unix "tail -f" with rich formatting (colors, fonts, images) in a GUI. I am targeting both wxMSW and wxMAC.
The obvious answer is to use wxTextCtrl with wxTE_RICH, using calls to wxTextCtrl::SetDefaultStyle() and wxTextCtrl::WriteText().
How... | stackexchange/codereview |
I'm working on some code that uses a pattern in its business and data tiers that uses events to signal errors e.g.
resource = AllocateLotsOfMemory();
if (SomeCondition())
{
OnOddError(new OddErrorEventArgs(resource.StatusProperty));
resource.FreeLotsOfMemory();
return;
}
This looked superficially ... | stackexchange/codereview |
I currently have a class and I'm trying to create an easy GUI to create a collection of this class. Most of the attributes of this class are strings. However, one of the attributes I want the user to be able to set is an Enum. Therefore, I would like the user interface, to have a dropdownlist for this enum, to restric... | stackexchange/codereview |
I'm working on a project with a rather large Oracle database (although my question applies equally well to other databases). We have a web interface which allows users to search on almost any possible combination of fields.
To make these searches go fast, we're adding indexes to the fields and combinations of fields o... | stackexchange/codereview |
Is there a tool, method or setting in the standard VBA Editor to warn about variables that have been Dim'med, but aren't being used?
| stackexchange/codereview |
Other than pasting a WDSL in the tech spec, what are the recommended ways to document a WCF web-service before you begin coding?
| stackexchange/codereview |
I am looking for a reliable technique for adding Ajax to a working ASP.NET MVC application. I want to use jQuery, and understand how to use the AJAX functionality from jQuery.
What I need to know is how I should write my controller so that I can run the site without JavaScript, but at the same time make AJAX calls pos... | stackexchange/codereview |
Although perhaps a bizare thing to want to do, I need to create an Array in .Net with a lower bound > 0. This at first seems to be possible, using:
Array.CreateInstance(typeof(Object), new int[] {2}, new int[] {9});
Produces the desired results (an array of objects with a lower bound set to 9). However the created arr... | stackexchange/codereview |
I've seen reference in some C# posted questions to a "using" clause.
Does java have the equivalent?
| stackexchange/codereview |
I have a class that encapsulates tcp socket communications with a server. For each command message sent to the server, the server will send back a response message that invariably contains a response code (OK, Fail). Using my class, each command can be executed either sync or async.
There are basically two types of exc... | stackexchange/codereview |
To start, I know there are two "kinds" of JSON serialization currently built into ASP.Net: you can either use the JavaScriptSerializer class to serialize your object to JSON or the new DataContractJsonSerializer class to convert a object to JSON.
If you use the JavaScriptSerializer() method, you must mark your class as... | stackexchange/codereview |
I've made some unit tests (in test class). The tutorial I've read said that I should make a TestSuite for the unittests.
Odd is that when I'm running the unit test directly (selecting the test class - Run as jUnit test) everything is working fine, altough when I'm trying the same thing with the test suite there's alway... | stackexchange/codereview |
Assume my objects are in perfect working order (i.e. TDD makes me think they work).
I have a list that I create like this (except indented properly):
var result = from v in vendors
from p in v.Products
orderby p.Name
select p;
This works - I get all products from all vendors.
Now... | stackexchange/codereview |
itoa() is a really handy function to convert a number to a string. Linux does not seem to have itoa(), is there an equivalent function or do I have to use sprintf(str, "%d", num)?
| stackexchange/codereview |
As far as I know (not much I'll admit), the currently popular programming paradigms are Object Oriented (Java, C#, Ruby) vs functional (F#). As someone who is mostly familiar with the first paradigm, I have several questions:
Can a programmer simply stick with one paradigm all of his/her life? Or in other words, can a... | stackexchange/codereview |
We are using SQL Server 2005, but this question can be for any RDBMS.
Which of the following is more efficient, when selecting all columns from a view?
Select * from view
or
Select col1, col2, ..., colN from view
| stackexchange/codereview |
I have seen a lot of discussions going on and people asking about DataGrid for WPF and complaining about Microsoft for not having one with their WPF framework till date. We know that WPF is a great UI technology and have the Concept of ItemsControl,DataTemplate, etc,etc to make great UX. Even WPF has got a more closely... | stackexchange/codereview |
inline int factorial(int n)
{
if(!n) return 1;
else return n*factorial(n-1);
}
As I was reading this, found that the above code would lead to "infinite compilation" if not handled by compiler correctly.
How does the compiler decide whether to inline a function or not ?
| stackexchange/codereview |
I have found no way of dumping the stack on all threads in .NET. Neither a signal to be send to the process nor programatic access to all the threads. I can only get access to the current thread via Thread.CurrentThread.
Any tricks ?
| stackexchange/codereview |
I've always handled optional parameters in JavaScript like this:
function myFunc(requiredArg, optionalArg){
optionalArg = optionalArg || 'defaultValue';
// Do stuff
}
Is there a better way to do it?
Are there any cases where using || like that is going to fail?
| stackexchange/codereview |
I have some commits that I've decided, after the fact, are going to be more branch work then trunk work. How do I create the branch and revert the trunk while still ensuring merging isn't painful later?
Is it as simple as copying the current trunk to a branch and reverting the trunk? Or will this create headaches later... | stackexchange/codereview |
Is the DLR intended to be used to compile code exclusively prior to distribution or will it potentially be used to compile client-side Javascript in a JIT fashion?
| stackexchange/codereview |
I'm wondering why query string is preferred when getting values from user request. Where?
1) Code of System.Web.Mvc.DefaultModelBinder looks like this (only part of it):
HttpRequestBase request = controllerContext.HttpContext.Request;
if (request != null)
{
if (request.QueryString != null)
{
... | stackexchange/codereview |
I am thinking about using Microsoft Unity for my Dependency Injection tool in our User Interface.
Our Middle Tier already uses Castle Windsor, but I am thinking I should stick with Microsoft.
Does anyone have any thoughts about what the best Dependency Injection tool is?
Autofac
Castle MicroKernel/Windsor
PicoContain... | stackexchange/codereview |
One of our internally written tool is fed a cvs commit trace of the form:
Checking in src/com/package/AFile.java;
/home/cvs/src/com/package/AFile.java,v <-- Afile.java
new revision: 1.1.2.56; previous revision: 1.1.2.55
done
The tool then acquires the file from cvs by issuing a cvs update -r 1.1.2.56 comma... | stackexchange/codereview |
I am using Apache's Velocity templating engine, and I would like to create a custom Directive. That is, I want to be able to write "#doMyThing()" and have it invoke some java code I wrote in order to generate the text.
I know that I can register a custom directive by adding a line
userdirective=my.package.here.MyDirect... | stackexchange/codereview |
I was looking into sorting tables by a column designated given some input, and from what I've found, there is no easy way to do this. The best I've found is a switch statement:
SELECT Column1, Column2, Column3, Column4
FROM Table
ORDER BY CASE WHEN @OrderBY = 'Column1' THEN Column1
WHEN @OrderBY = 'Colu... | stackexchange/codereview |
I would like users to submit a URL that is valid but also is an image, ending with .jpg, .png, or .gif.
| stackexchange/codereview |
I am designing a class for log entries of my mail server. I have parsed the log entries and created the class hierarchy. Now I need to save the in memory representation to the disk. I need to save it to multiple destinations like mysql and disk files. I am at a loss to find out the proper way to design the persistence ... | stackexchange/codereview |
So, bitfields. Specifically, large bitfields. I understand how to manipulate individual values in a bitfield, but how would I go about doing this on a large set, such as say:
uint[] bitfield = new uint[4] { 0x0080000, 0x00FA3020, 0x00C8000, 0x0FF00D0 };
The specific problem I'm having is doing left and right shifts th... | stackexchange/codereview |
When 'val' below is not a bool I get an exception, I believe I can use TryParse but I'm not sure how best to use it with my code below. Can anyone help?
checkBox.Checked = Convert.ToBoolean(val);
Thanks
| stackexchange/codereview |
Eclipse 3.4[.x] - also known as Ganymede - comes with this new mechanism of provisioning called p2.
"Provisioning" is the process allowing to discover and update on demand some parts of an application, as explained in general in this article on the Sun Web site.
Eclipse has an extended wiki section in which p2 details... | stackexchange/codereview |
Should it be on the development servers or a Subversion server?
I suppose this could be expanded to any client-server version control system.
| stackexchange/codereview |
The popular design pattern MVC (Model/View/Controller) has an extended cousin MVC-ARS (Action/Representation/State). The added components all live within the database layer and while are not part of the model, they are invoked by it. Details are as follows:
State, as in state machine. This follows the classic state... | stackexchange/codereview |
I know that I can share files using Shared Folders in Virtual PC, but this method seems to have pretty poor performance. Is there another method to share files that provides better performance? (Besides using something other than Virtual PC)
| stackexchange/codereview |
When I retrieve a record using LINQ that has a DateTime field only the ToString() is available.
Where are all the other DateTime methods?
I have to Convert.ToDateTime the DateTime? that the Field returns?
What is the difference between (DateTime) and (DateTime?)
| stackexchange/codereview |
I have two files (f1 and f2) containing some text (or binary data).
How can I quickly find common blocks?
e.g.
f1: ABC DEF
f2: XXABC XEF
output:
common blocks:
length 4: "ABC " in f1@0 and f2@2
length 2: "EF" in f1@5 and f2@8
| stackexchange/codereview |
Consider this code...
using System.Threading;
//...
Timer someWork = new Timer(
delegate(object state) {
//Do some work here...
},
null, 0, 60000);
HttpContext.Current.Application["SomeWorkItem"] = someWork;
Could this be dangerous? Caching a timer in the Application to perform some work in the ba... | stackexchange/codereview |
I have a project with a formidable data access layer using LinqtoSQL for just about anything touching our databases. I needed to build a helper class that bridges some common crud operations from CLSA objects to LinqToSql ones. Everything has been operating swimmingly until I needed to do a truncate on a table and all ... | stackexchange/codereview |
I'm writing some cross-platform code between Windows and Mac.
If list::end() "returns an iterator that addresses the location succeeding the last element in a list" and can be checked when traversing a list forward, what is the best way to traverse the list backwards?
This code works on the Mac but not on Windows (can... | stackexchange/codereview |
I would like to dynamically create a minimal transparent bar graph to display over a canvas.
I was thinking of using a custom renderer for a JButton or a JLabel; but how do I draw my bar graph in this renderer?
| stackexchange/codereview |
I have a multi-table query, similar to this (simplified version)
SELECT columns, count(table2.rev_id) As rev_count, sum(table2.rev_rating) As sum_rev_rating
FROM table1
LEFT JOIN table2
ON table1.dom_id = table2.rev_domain_from
WHERE dom_lastreview != 0 AND rev_status = 1
GROUP BY dom_url
ORDER BY sum_rev_rating/re... | stackexchange/codereview |
I am after documentation on using wildcard or regular expressions (not sure on the exact terminology) with a jQuery selector.
I have looked for this myself but have been unable to find information on the syntax and how to use it. Does anyone know where the documentation for the syntax is?
EDIT: The attribute filters al... | stackexchange/codereview |
I am developing an application using MVC Preview 5. I have used typed views.
After setting debug="false", I have found that I am receiving errors of the form:
"The model item passed into the
dictionary is of type
'blah.Models.UserAdmin.IndexData' but
this dictionary requires a model item
of type
'blah.Model... | stackexchange/codereview |
What is the best database schema to track role-based access controls for a web application?
I am using Rails, but the RBAC plugin linked by Google looks unmaintained (only 300 commits to SVN; latest was almost a year ago).
The concept is simple enough to implement from scratch, yet complex and important enough that it'... | stackexchange/codereview |
I find it odd that in Visual C# 2008 Express edition, when you use the database explorer, your options are:
Microsoft Access
SQL Server Compact 3.5, and
SQL Server Database File.
BUT if you use Visual Web Developer 2008 Express, you can connect to a regular SQL Server, Oracle, ODBC, etc.
For people developing comm... | stackexchange/codereview |
I want to do this in code, not with ALT+F1.
| stackexchange/codereview |
I would like a constraint on a SQL Server 2000 table column that is sort of a combination of a foreign key and a check constraint. The value of my column must exist in the other table, but I am only concerned with values in the other table where one of its columns equal a specified value. The simplified tables are:
... | stackexchange/codereview |
I have a method running in a seperate thread. The thread is created and started from a form in a windows application. If an exception is thrown from inside the thread, what is the best way to pass it back to the main application. Right now, I'm passing a reference to the main form into the thread, then invoking the ... | stackexchange/codereview |
The kind of simulation game that I have in mind is the kind where you have things to build in various locations and workers/transporters that connect such locations.
Something more like the Settlers series.
Let's assume I don't want any graphics at the moment, that I think I can manage.
So my doubts are the following:
... | stackexchange/codereview |
Is there anyway to combine all resources into a single exe file such as app.config and associated DLL's?
Some applications seem to do this such as eMule.
I don't want my app.config sitting there waiting to be edited.
Thanks
| stackexchange/codereview |
I'm looking for a cross-browser method - I know IE has something (I've already forgotten what), and the way to do it in Mozilla may have to do with a focusNode thing I found, that seems related to getting text selections.
Methods involving jQuery or another common JS library are fine by me.
Thanks!
| stackexchange/codereview |
How can I add an instance variable to a defined class at runtime, and later get and set its value from outside of the class?
I'm looking for a metaprogramming solution that allows me to modify the class instance at runtime instead of modifying the source code that originally defined the class. A few of the solutions e... | stackexchange/codereview |
If something goes wrong in a WCF REST call, such as the requested resource is not found, how can I play with the HTTP response code (setting it to something like HTTP 404, for example) in my OperationContract method?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.