Consider the follwoing fragment:
int a,b;
a = 1;
b = 2;
c = a++++b; <-- does not work!! Compilation error.
c = a++*+b; <-- works !!
Please help me understand this behaviour.
Take a look at the ssl_requirement plugin.
Shouldn't it check to see if you're in production mode? We're seeing a redirect to https in development mode, which seems odd. Or is that the normal behavior for the plugin? I thought it behaved differently in the past.
Do you know any open software projects that had particularly interesting / well written unit tests ?
Writing unit tests often feels odd to me, because it seems either too random, too dense, to sparse, .. It would be great to read some real world examples (rather than books, library example code etc)..
With the following simple mark-up, I get very strange behaviour in FF and IE8. If I give the textbox focus, and tab out, nothing happens. If I give a user name value, and erase it immediately, nothing happens. However, only when I supply a user name, tab away, the erase it and tab away again, do I finally get a red star "required" mark. The summary doesn't show at all.
consider this:
I'm inside a (selfbuilt) XML Editor and am about to add a Child to an XmlNode.
How do I know which types of children are valid according to a DTD.
it's a behaviour like Intellisense.
I couldn't find any .NET classes for "parsing" the DTD.
How would i go about this?
Expect behaviour ::
User has to login from aut.mycompany.local and after login he must be redirected to my.mycompany.local.
Redirecting Code after validating the user credentials
return RedirectToAction("Index", @"plportal/account", new { subdomain = "my" });
Actual Subdomain URL
http://my.mycompany.local/plportal/account
But I'm getting belwo error:
System.DirectoryServices.DirectoryServicesCOMException: There is no such object on the server.
PLease help me and thanks in advance
I installed Doxygen 1.6.1.
I used \section, \subsection and \subsubsection for titles.
It surprisingly obtained titles for \subsubsection have large font set up than for \subsection and \section.
What is wrong?
How this can be fixed?
CSS should be used to workaround this or can I fix my doxygen installation to obtain expected common behaviour?
If it's possible to change mock behaviour in Rhino Mocks using mock.Stub().Return(), why do we need Stubs anyway?
What do we lose by always using MockRepository.GenerateMock()?
One big benefit of using Mocks instead of Stubs is that we will be able to reuse the same instance among all the tests keeping them cleaner and straightforward.
The moq framework works in a similar way... we don't have different objects for mocks and stubs.
(please, don't answer with a link to Fowler's "Mocks aren't stubs" article)
Hi,
This is odd, but for some reason the $_SERVER["SCRIPT_URI"] will not return the domain name when I am in child/sub-pages but will only work on the main page. Not sure if its due to the script (WordPress) or host, but please can you suggest any reliable solution to retrieve the domain name with PHP?
I am very thankful in advance,
Regards
Hello all,
I have a UIPickerView implemented in one of my pages that depends on the didSelectRow delegate method.
An odd behavior I have noticed is when the user moves a wheel and leaves it between selections, then the wheel will move very slowly to the closest selection. The didSelectRow event will not fire until this is complete, sometimes 3 seconds later.
Is there a way to speed this up, or detect when the wheel is being moved, so I can freeze my interface during this time?
Hi there,
I'm looking for a data structure that will act like a Queue so that I can hava First In First Out behaviour, but ideally I would also be able to see if an element exists in that Queue in constant time as you can do with a HashMap, rather than the linear time that you get with a LinkedList.
I thought a LinkedHashMap might do the job, but although I could make an iterator and just take and then remove the first element of the iteration to produce a sort of poll() method, I'm wondering if there is a better way.
Many thanks in advance
When I drag and drop between datagrids preventing default behaviour, the cursor's does not come out of the grid. The grid's scroll bars keep moving as i move the mouse.. Even if i click outside the grid the cursor still has control over the grid and keeps scrolling as i move the mouse over the screen up and down.. Please help
Hi,
If I apply a style from the SL 3.0 Toolkit to my application the built in SL 3.0 data validation errors are not displayed on the application edit forms. If I removed the code that applies the toolkit style to the application the SL 3.0 data validation errors appear as per normal SL 3.0 behaviour?
Has anyone else come across this problem?????
Any help is always appreciated.
Cheers
Adam
Hello,
I'm testing my App and in a very simple view, each time a tap on a UITableView row, my allocation overall bytes get higher and higher and never go downs.
I don't have any special code there, so I created a new project from scratch with a very simple view, force one section and just three rows. In the didSelectRowAtIndexPath code do nothing, and fire it with instruments and memory allocation and, the memory goes up with every cell selection ...
Is this normal behaviour ?
thanks,
regards,
m.
Hey folks
I'm trying to write some unit tests for an app I work on at work (In the vague hope that others might follow suit), and I was originally running these tests using NUnit and the ReSharper plugin.
However, ReSharper will no longer run tests for me for some reason: It simply crosses them out with a red strikeout.
There's no error code I'm afraid, and there's no mention of such behaviour on the JetBrains site.
Has anyone else experienced similar benhaviour?
Cheers, Ed
This is a bit of an odd case I must admit, but I'm trying to find a succinct and elegant way of converting a List<int> into an actual int. For example, if my list contained entries 1, 2, and 3, then the final integer would be 123. The only other way I thought of doing it was converting the array to a string and then parsing the string.
Any hints?
I've implemented taxonomy menu in Drupal, and trying to set it up so that it is pretty easy for the user to add new items to the vocabulary from the create content form instead of having to administer the vocabulary itself.
So far, all I can manage is the default behaviour of displaying the existing items.
Given a array of random integers, sort the odd elements in descending order and even numbers in ascending order.
e.g. for input (1,4,5,2,3,6,7)
Output = (7,5,3,1,2,4,6)
Optimize for time complexity.
I am trying to debug an application in Flash Builder 4.
The application I am working makes use of php session variables to ensure that the user is logged in.
When not debugging, after logging in I can simply path to the container html file and everything works fine. However, when I am debugging a new IE window is launched but for some odd reason the previously logged in php session does not exist for this window.
Is this an issue with IE?
Hi all,
I have a strange bug. I create a qx.ui.table.Table and if not all specified columns fit into window (horizontal scroll appear) my browsers (firefox 3.5.6 and chrome 5.0.344) hangs. If i just set width for window large (e.g. from 600px to 800px) - all works fine.
May be I'm doing something wrong? Or how can I fix/avoid this 'strange' behaviour?
When I start Tomcat I get the following error:
Jun 10, 2010 5:17:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jun 10, 2010 5:17:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/mywebapplication] startup failed due to previous errors
It seems odd that the logs for Tomcat would not include a stack trace. Does somebody have a suggestion for how to increase the logging in Tomcat to get stack traces for errors like this?
Hi, im able to hook registry accesses, file accesses etc- because i know which Win32 method is responsible and i can 'hook' the behaviour of this.
However, i wish to be able to 'hook'/stop packets being received when ive detected an intrusion but im not sure which Win32 function i need to 'hook'.
Does anyone know? I was getting slightly lost on the MSDN website
I understand the default git behaviour of updating the modification time every time it changes a file, but there are times when I want to restore a file's original modification time.
Is there a way I can tell git to do this?
(As an example, when working on a large project, I made some changes to configure.ac, found out that autotools doesn't work on my system, and wanted to restore configure.ac's to its original contents and modification time so that make doesn't try to update configure with my broken autotools).
In MATLAB, why does the file have to be saved prior to running ?
I often try quick snippets of code, which I could also easily run also on the Command Window line by line. So, why when I run them through the editor, I have to save them first ?
Can this behaviour be changed, maybe ?