I'm looking at the following code block in javascript:
var request = new Request();
if(request.Use()) // What exactly does this do?
{
// ...do stuff
}
else
{
// no ajax support?
}
I've never seen anyone invoke the request.Use() method.
My Question:
What exactly does request.Use() check?
Does it in fact check for AJAX …
I heard that Windows 7 restricts access to its registry, so that applications cannot write directly to it. Is this so? I am developing an application in C#, and I would like to be able to save things such as port settings, last file used, etc. between sessions. Is the registry still a good option, or is there another preferred means of doing…
Other SO threads have asked people
if they prefer N-Tier or MVC
architecture.
I'm not looking to
continue that debate on this thread.
I'm looking for something more specific.
My Question:
Does Anyone Still Prefer N-Tier Architecture After Having Shipped an MVC Application?
Reason for My Question:
Before I shipped an MVC web…
Hey all,
Does anyone have any ideas on what could be used as a way to filter untrustworthy user submitted content?
Take Yelp for instance, they would need to prevent competitors writing business reviews on their competitors. They would need to prevent business owners favourably reviewing their own business, or forcing…
My app uses a WebView, and users sometimes adjust the zoom level to make the text larger. However the zoom level setting is lost when the Activity is closed and another one started.
I can't see how to get and set the zoom level programatically on WebView, can anyone suggest a way this could be done?
LogEvents(System.Text.Encoding.UTF8.GetString(queryPlaces.ToBson))
I want to be able to output not just the content of System.Text.Encoding.UTF8.GetString(queryPlaces.ToBson) but also the actual string of System.Text.Encoding.UTF8.GetString(queryPlaces.ToBson) itself, perhaps with line numbers and file names.
I know…
I need to determine if I'm on a particular view. My use case is that I'd like to decorate navigation elements with an "on" class for the current view. Is there a built in way of doing this?
when selecting a packet and choosing to follow the stream, wireshark automatically sets a filter that looks something like this: (ip.addr eq 10.2.3.8 and ip.addr eq 10.2.255.255) and (udp.port eq 999 and udp.port eq 899). i'd like to be able to set that myself when following the stream, but have not been able to…
I have a Class that I need to copy with the ability to make changes the value of a variable on both Classes. Simply put the classes need to remain clones of each other at all times. My understanding of the documentation is that I can do this using a shallow copy of the Class which has also been declared mutable.…
I have two tableviews where one navigates to the next. Both use more or less the same code and use the managedObjectContext and FetchedResultsController design pattern to provide the relevant data for both tables.
My problem happens when I navigate from the first to the second tableview and the data has only…
Can anybody help me with the syntax?
insert into history (company,partnumber,price) values ('blah','IFS0090','0.00') if company NOT IN ('blah','blah2','blah3','blah4','blah4') and partnumber='IFS0090';
Background: I have a history table which stores daily company, products and prices. But sometimes a…
While trying to optimize SQL scripts, I was recommended to add indexes.
What is the easiest way to specify what Database the index should be on?
IF EXISTS (SELECT * FROM sysindexes WHERE NAME = 'idx_TableA')
DROP INDEX TableA.idx_TableA
IF EXISTS (SELECT * FROM sysindexes WHERE NAME =…
I have a requirement to develop a .NET-based application whose data requirements are likely to exceed the 4 gig limit of SQL 2005 Express Edition.
There may be other customers of the same application (in the future) with a requirement to use a specific DB platform (such as Oracle or SQL…
I'm trying to improve the maintainability of some code involving reflection. The app has a .NET Remoting interface exposing (among other things) a method called Execute for accessing parts of the app not included in its published remote interface.
Here is how the app designates…
Is this equivalent to a LEFT JOIN?
SELECT DISTINCT a.name, b.name
FROM tableA a,
(SELECT DISTINCT name FROM tableB) as b
It seems as though there is no link between the two tables.
Is there an easier / more efficient way to write this?
I have two vectors of MyObj structs. MyObj is defined as follows:
struct MyObj
{
float x, y;
unsigned int data[8];
unsigned int tmp[1];
MyObj(const MyObj &m)
{
x = m.x; y = m.y;
tmp[0] = 0;
for (int i = 0; i < 8; ++i)
{
…
Hi,
I am using areas in MVC version 3.
My logoff and logon action methods are routing to the area, and I need them to route to the normal controller that is not in an area.
I have tried the following
host://AREA/CONTROLLER/METHOD instead of host://CONTROLLER/METHOD.
…
Hello,
I want to set the size of a JFrame such that the contentPane is the desired size. JFrame.setSize() doesn't take the window decorations into account, so the contentPane is slightly too small. The size of the window decorations are platform and theme specific,…
Hello. I have a C# application wherein serial (COM1) data appears to sometimes not get transmitted. Following is a simplified snippet of my code (calls to textBox writes have been removed):
try
{
serialPort1.Write("D");
…
I would like to write a "daemon" application that will add a special audio filter (e.g. audio enhancement) to AudioRecord. The result should be as follows:
Whenever any VoIP application (e.g. Skype,...) will create an AudioRecord, the captured audio will be…
The following SQL statement has a syntax error according to phpMyAdmin, but I can't spot what it is. Any ideas?
CREATE TABLE allocations(
`student_uid` INT unsigned NOT NULL DEFAULT 0,
`active` INT unsigned NOT NULL DEFAULT 1,
`name` VARCHAR( 255 ) NOT…