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?
Is there any efficient way in python to count the times an array of numbers is between certain intervals? the number of intervals i will be using may get quite large
like:
mylist = [4,4,1,18,2,15,6,14,2,16,2,17,12,3,12,4,15,5,17]
some function(mylist, startpoints):
# startpoints = [0,10,20]
count values in range [0,9]
count values in range [10-19]
output = [9,10]
Let's assume you have a big complex index page, that shows news articles and stuff. It's not going to change very often. Can you cache it somehow on the serverside, so requests don't force to server to dynamically generate the entire page every time someone visits it? Or does ASP.NET do this automatically?
If so, how does it know if something has changed?
Hi,
Can we convert numbers to their alphabetical equivalents? For example
21 - twenty one
9999 - nine thousand nine hundred ninghty nine
If yes, how to do this?
Thanks and Regards,
EDIT :
Any language will do. C#, C++, Java, python.
Hi guys
I need to convert a string to a monetary format of {###}.###.###,##
that is
a value of 5461497702600
would become
54.614.977.026,00
The numbers become excessively large.
I am using
return string.Format(string.Format("{0:#" + (val < 1000 ? "" : "\\.") + "##0.00}", val));
which returns for the example
54614977.026,00
(only one dot)
Any help would be appreciated
I want to define a function replicate to replicate a list of numbers by its value using only list comprehension, for example:
replicate [5,1,3,2,8,1,2]
output: [5,5,5,5,5,1,3,3,3,2,2,8,8,8,8,8,8,8,8,1,2,2]
I know this would be easy to use the 'replicate' built in function but only list comprehension is allow, how can I do this?
THANKS!
If you drag and release quickly from the horizontal menu, the menu will auto slide for a distance. It seems to slide more the faster you drag and release. Source -appear.dk
How do i achieve this effect? Has it got to do with some complex formulaes?
I have a table of many values where one column has the WO Number, and another column has the Resource ID. I need to be able to find all the WO numbers that do not have a resource value of "RW".
Here is an example of the typical information. I need to be able to know that work order 5678 does not have an "RW" Resource ID.
WO Number - Resource ID
1234 - IN
1234 - WE
1234 - AS
1234 - RW
5678 - PR
5678 - WE
5678 - IN
5678 - AS
Hi
This is a doubt on mysql select query
let me axplain my doubt with a simple example
consider this is my query
SELECT dbCountry from tableCountry
tableCountry has fields dbCuntryId dbCountry and dbState
I have the result as
dbCountry
india
america
england
kenya
pakisthan
I need the result as
1 india
2 america
3 england
4 kenya
5 pakisthan
the numbers 12345 must be generated with the increase in data and itis not a autoincrement id
How can i get it
is it something like loop
Hi I am revising for an exam and need to know some implementation issues with the singleton pattern. they do not need to be too complex just basic things that would affect a developers decision to include them, Thanks
P.S. Could any code examples be given in Java thanks.
Hi everyone,
Is_numeric() as well as is_int() returns false if the value is 0. What can i do instead to verify that a specific value is numbers only in PHP?
Are we heading straight for the Regular Expressions camp, or are there some nice, handy feature for this out there already?
Thanks!
Hi,
I am trying to get the following spec to run:
describe BlacklistController, "GET index" do
it "should display the list of universally blocked numbers" do
get :index
debugger
assigns[:blocked_numbers].should contain "190"
end
end
Here's the action
def index
@blocked_numbers << "190"
respond_to do |format|
format.html
end
end
And the failure simply says that assigns[:blocked_numbers} is nil. Why's that?
I've written an app which contains a large textview for displaying notes. Is it possible to have the textview highlight any phone numbers or hyperlinks without underlining the entire view?
Hi,
I have an array of (4) floating point numbers and need to sort the array in descending order. I'm quite new to c++, and was wondering what would be the best way to do this?
Thanks.
I develop applications using PHP and MySQL. They're not trivial, though they're not too complex. As an example to that I have written an online application to enable football administrators manage the player, competition and judiciary processes.
Separately to that I have used Joomla to create websites for small businesses.
I'd like to be able to use Joomla as my online application development environment. Is there a way I can use Joomla for that?
What regular expression using java could be used to filter out dashes '-' and open close round brackets from a string representing phone numbers...
so that (234) 887-9999 should give 2348879999
and similarly 234-887-9999 should give 2348879999.
Thanks,
Write program that has two threads one is reading numbers from the user and the other is printing them such that the first thread reads a new number only after it has been printed by the second thread. Declare one global varaible to use for reading and printing.
I am developing a website, where I am allowing users to upload videos, but if the members numbers keep on increasing and they keep on uploading more videos it will be expensive for me. So I want to upload the movies to youtube instead, is this possible?
By viewing some other posts here, I am thinking it is possible?
I am looking for a XML tool which does the following things.
Allows me to enter xpath expressions and highlights the nodes selected
Assists me in creating complex xpath expressions.
What are other people using out there?
I've used something from source forge but it only selects one matched node.
i have a textbox in asp.net form.... if i entered numbers not like 7 or 8 or 9, then script function should be araised with alert message.... how to achieve this.... that 7 or 8 or 9 are first digits in my texbox...
hi everybody fisrt of all this is not homework and now question is like this suppose
i have array int a[]=new int[]{0xBCDA,0xABFE,0xBCAD,0xEFCA,0xFFCA} i know that there is always some hexadecimal number which occurs in all number or in this case A is repeat in array everywhere so my aim is print only repeat number and other numbers should be zero
so my new array should be like this
0x000A, 0xA000,0x00A0 0x000A,0x000A any idea please help me?
p.s please nobody say that this is homework
Hey, i know the 5 registry hives have large 8-digit values for their handles and i have written a function which maps the value to the hive name.
However, i'm also getting (in my data) much smaller numbers like 60, 120 etc and i have no idea which registry keys these represent. What could i do to find out?
I can print a range of numbers easily using range, but is is possible to print a range with 1 decimal place from -10 to 10?
e.g
-10.0, -9.9, -9.8 all they way through to +10?