What is the best way to organize a MVC2 web project (as complex as stackoverflow)?
should i have everything in one project?
if not, how should i separate the projects and folders?
I need to convert Keys.Enter to a char.
This does not work in compact framework: http://stackoverflow.com/questions/2518749/convert-sequence-of-system-windows-forms-keys-to-a-char (KeyInterop.VirtualKeyFromKey)
Any one have any other ideas?
Trying to convert this tax-like IRS function http://stackoverflow.com/questions/1817920/calculating-revenue-share-at-different-tiers to SQL. The assumption is the table would be one column (price) and the tiers will be added dynamically.
My first attempt has some case statements that didn't work out well. I have since scrapped it :) Thanks for the help!
http://stackoverflow.com/questions/1785762/how-to-add-a-full-sized-image-to-the-center-of-a-webpage-using-jquery/1787976#1787976
The code the guy posted...
Some websites have forms with input type="text". And inside these textboxes there is a blurred text, which says for example: "Enter your name here".
And then onClick or OnFocus or whatever, the text dissappears and you can type into the textbox.
Like the title of posting a question here at stackoverflow, same thing.
How is this done easiest way? Would prefer if there was not too much js involved.
Thanks
I saw the answer of a question: http://stackoverflow.com/questions/2443490/add-jquery-colorbox-plugin-to-a-dynamically-created-element
Solve part of the problem, works fine, but when I click for second time, it doesn't work.
When I try to click for second time an error displays: $.fn.colorbox is not a function.
How can i correct that error and avoid a double click to bind colorbox.
I don't speak english, i did my best to write this words, i hope you can read me. Thanks.
It seems that a similar question has been asked before, http://stackoverflow.com/questions/373357/obtaining-iphone-photo-exposure-information
I wondering with the new iPhone camera, if there is any way to extract exposure data from the camera? it seems that it is able to sample different exposures based on where you focus, but I have yet to find any further documentation.
Thanks
I'm struggling to find a tag selection UI for a rails app. Ideally it would be something like the selection here on Stackoverflow, or on Delicious or Digg.
I want users to be able to select multiple tags with a single click. We're already using jQuery, so it makes sense to use something that takes advantage of that. I've used the selection ui in jQuery and I'm not thrilled about having users need to hold down ctrl to select multiple tags.
I know from reading this:
http://stackoverflow.com/questions/1230457/is-there-a-size-limit-for-ota-android-market-downloads/1232145#1232145
That there wasn't a limit to the size of an application that could be downloaded over the air (OTA) but I wonder if a limit, like that imposed by the Apple App Store (20MB) exists now that the Nexus one is running on AT&T's 3G network as of today.
Thanks in advance for your help/
Truk
As mentioned in this link http://stackoverflow.com/questions/1399613/disable-link-with-the-prototype-observe-method/2811085#2811085
If the link is disabled using the observe method how is it possible to enable it.
Thanks
I was thinking if there's a better solution for adding onclick handler to each cell in a table than this approach: http://stackoverflow.com/questions/1207939/adding-an-onclick-event-to-a-table-row
Better in the way that I wouldn't need to set "cell.onclick = function" for each cell.
I just need to get the coordinations of a cell where user clicked.
Thanks!
I am doing an activity monitor based on date which is similar to stackoverflow Today,YesterDay,this week,Last week,this month,last Month..... Based on current date how to get start-date and end-date for all these Today,YesterDay,this week,Last week,this month,last Month in c#?
I am hoping to create 3 (non-negative) quasi-random numbers that sum to one, and repeat over and over.
Basically I am trying to partition something into three random parts over many trials.
While I am aware of
a= runif(3,0,1)
I was thinking that I could use 1-a as the max in the next run if, but it seems messy.
But these of course don't sum to one. Any thoughts, oh wise stackoverflow-ers?
This setting in PATH:
D:\MATLAB\R2007b\bin\win32
Here is a fresh bad affect by this setting for me:
http://stackoverflow.com/questions/2712913/why-does-this-program-require-msvcr80-dll-and-whats-the-best-solution-for-this-k
And here's an issue reported by another guy:
http://groups.google.com/group/ggobi/browse_thread/thread/dacea0fa93dcaf75
What's that setting for and why it's causing so many problems?
Hi,
I have the same problem of this post : http://stackoverflow.com/questions/2668564/scrollpane-component-required-in-library-even-though-it-is-not-being-used-by-pare/2783997#2783997
But I try to put the component in the parent fla and it doesn't change anything and I still have the 1009 error. Any idea ?
It's from the comments under this answer:
http://stackoverflow.com/questions/2487429/how-to-encapsulate-the-helper-functionscommonly-used-apis-in-a-oop-language-lik/2487464#2487464
I'd like to see explanations in layman words.
Thanks
Like :
using ::size_t; using ::fpos_t; using ::FILE;
In fact it's a question inspired by the comment under this question:
http://stackoverflow.com/questions/2532412/when-is-h-not-needed-to-include-a-header-file
Does MySQL have an equalavent to MS SQL Servers "indexed view" functionality?
http://stackoverflow.com/questions/439056/is-a-view-faster-than-a-simple-query
What I'm specifically looking for is a way for MySQL to create a "view" that will return results faster than simply performing the underline view's query/sql.
I was looking at this answer and some other answers http://stackoverflow.com/questions/199099/how-to-manage-a-redirect-request-after-a-jquery-ajax-call/199156#199156
I can not get this to work. i check the XMLHttpRequest object in both success and complete. In both cases when there is a redirect instead of getting a 302 i get a 200 and the html for that page. How do i make it actually report the 3xx redirect instead of skipping ahead and giving me a 200?
I want to change the URL that appears when you go to:
MYSUBDOMAIN.MYCOMPANY.COM/carbonated-milk/
to:
carbonated-milk.com/
I'm trying to figure out what to put in my .htaccess folder to do this and I've been reading through all kinds of doc files and through other peoples' questions on stackoverflow but can't come up with an answer for this. Do any of you have any idea?
The Goal:
On mouseover (or :hover), enlarge the preview image by about 400% and display it in the center of the page
Remove the preview when the mouse leaves
The Problem:
Solutions like FancyBox are too bloated
in FancyBox's case it ignores width and height for image elements, which makes it useless
Most of these "lightboxes" steal focus when they're called
Really, I'm just looking for a simple, efficient solution.
Oops - StackOverflow won't let me post images yet, mockup - http://img685.imageshack.us/img685/7649/idae.png
Title says it all really. Using only XSLT 1.0's string functions, how would I go about slicing off the end of a url?
So from
http://stackoverflow.com/questions/2981175/is-it-possible-to-slice-the-end-of-a-url-with-xslt-1-0
I would like to extract
is-it-possible-to-slice-the-end-of-a-url-with-xslt-1-0
Is this possible?
please help this is very important problem for me i am going to get job and need such kind of practise implement heaps priortiy queue and so on what is wrong in my java code please tell
i want insert number with heap property and return minimum element what is wrong explain please
look
http://stackoverflow.com/questions/2902781/priority-queue-implementation/2903288#2903288
Possible Duplicate:
Delete duplicate records from a SQL table without a primary key
I have a table with the columns
person_ID
firstname
lastname
and I somehow ended up with a bunch of duplicates.
Is there any way to look at all columns where firstname and lastname are the same and delete all except one of them (it doesn't matter which one is left as they are all the same.)
EDIT: I just found a duplicate question and perfect answer:
http://stackoverflow.com/questions/985384/delete-duplicate-records-from-a-sql-table-without-a-primary-key
Hi.
This is the same question of this link:
http://stackoverflow.com/questions/1515722/removing-nidn-in-nodereference-autocomplete
According with the first answer (Grayside) I've created my own module and activated. Then I create a new content, I look sth up in the nodereference field and finally select it - it works (Doesn't appear the [nid:n]).
But, when I view/preview or save or edit the content, the [nid:n] appears again.
Anybody can help me?