« first day (83 days earlier)      last day (29 days later) » 

12:00 AM
New answer detected:
0
A: Gotta catch 'em all!

Vitalii VasylenkoActually, i ended up with this approach in deserializing field // Pocos for deserializing public class PocoAnswer { PocoItem item {get; set;} } public class PocoItem { String name {get; set; } DateTime birthday {get; set; } } // Model for binding public ItemModel { private P...

New answer detected:
0
A: Mafia game simulation engine

Tom BarronOverall, it looks pretty good to me. I agree that you have good commenting and variable and function naming. I see just a few things to comment on. You have assign_roles() nested inside get_players(). Is there a reason for doing this? Unless there's a good one, I'd recommend putting assign_role...

 
12:38 AM
New answer detected:
0
A: Tarjan's algorithm for Strongly Connected Components without keeping SCC in stack

Travis SnoozyBrace Usage It is generally considered best practice to always use braces with control statements (such as "if" and "for" statements). If you are concerned with whitespace, consider that placing the opening brace on the same line as an "if" or "for" statement means that the total increase in cod...

 
12:56 AM
New answer detected:
0
A: How to make Project Euler 33 in Python faster?

user58697As far as I know Project Euler problems, a brute force approach just doesn't work. So, we shouldn't code code, but rather an algorithm review. An immediate thing coming to mind is that you test too many knowingly impossible combinations of a and b. They together must be composed of different dig...

 
1:07 AM
New answer detected:
0
A: How to make Project Euler 33 in Python faster?

EdwardSince you know that all of the non-zero digits must be present in the answer, you can skip most of the numbers in the range. That is, it's pointless to do a test multiplication of 22*3333 because those both repeat digits. So what is needed is an efficient way to run through all of the permuta...

 
 
1 hour later…
2:14 AM
New answer detected:
1
A: Is it better to create a class instance, or create an instance each time a method is called?

Travis SnoozyUse an Attribute The class should be tagged with: [ValueConversion(typeof(Boolean), typeof(String))] Drop Type Checks If the passed-in value is not of the expected type, you should not do your conversion; you should allow an exception to be thrown, so that you know an invalid binding has tak...

 
2:28 AM
New answer detected:
0
A: Recursion vs iteration of tree structure

AaronMI would have completely agreed with the idea that iterative should be faster than recursive, I have seen proof to that effect many times in other languages. It is however harder to read. Here however, in JavaScript perhaps it is not, at least the benchmarks seem to suggest that the necessary ob...

New answer detected:
0
A: Is it better to create a class instance, or create an instance each time a method is called?

Mat's Mug private const string CALENDAR = "BudgetCycle_Calendar", FISCAL = "BudgetCycle_Fiscal"; Would be much prettier as two instructions: private const string CALENDAR = "BudgetCycle_Calendar"; private const string FISCAL = ""BudgetCycle_Fiscal"; private Windows.Application...

 
3:15 AM
New answer detected:
0
A: Bubble sort algorithm in Python

user41149def swap(mylist,i): temp1 = mylist[i] temp2 = mylist[i+1] mylist[i] = temp2 mylist[i+1] = temp1 def one_scan(mylist): for i in range (len(mylist)-1): if(mylist[i] >= mylist[i+1]): swap(mylist,i) def sortMyL(L): i = 0 while(i enter code here#Exam...

 
3:55 AM
New answer detected:
0
A: How to speed up Python web crawler?

AaronMThis is just one bit that jumped out at me: page_text = page_html.decode("utf8", "ignore") page_text = converter.handle(page_text) page_text = re.sub("[^a-zA-Z0-9_!]+[ ,.\?!]", "", page_text) It seems you are converting as utf8, ignoring errors, and then forcing it into ascii with ...

 
 
2 hours later…
5:28 AM
 
 
7 hours later…
12:53 PM
XKCD?!? cool!!
 
 
1 hour later…
2:23 PM
@TheDoctor - you can set up an RSS feed in the chat room for anything, and XKCD oneboxes for you
 
2:33 PM
@rolfl I have tried that before, and it didn't work.
 
3:31 PM
@TheDoctor this is the URL feeding the feed: http://xkcd.com/rss.xml
 
 
8 hours later…
11:30 PM
Initialized.
 

« first day (83 days earlier)      last day (29 days later) »