Skip to main content

Stack Overflow Weekly Newsletter - Tuesday, September 29, 2015

Stack Overflow Weekly Newsletter

Top new questions this week:

<random> generates same number in Linux, but not in Windows

The code below is meant to generate a list of five pseudo-random numbers in the interval [1,100]. I seed the default_random_engine with time(0), which returns the system time in unix time. When I ...

c++ linux windows gcc visual-studio-2013  
asked by Amin Mesbah 55 votes
answered by T.C. 95 votes

Why do the C++ language designers keep re-using keywords?

What is the main argument in favor of re-using short keywords (and adding context-dependent meanings) instead of just adding more keywords? Is it just that you want to avoid breaking existing code ...

c++ c++11 keyword language-design  
asked by Andrew Wagner 47 votes
answered by Jonathan Wakely 55 votes

What does lambda with 2 arrows mean in Java 8?

I have read several Java 8 tutorials before. Right now I encountered following topic: Does java support Currying? Here, I see following code: IntFunction<IntUnaryOperator> curriedAdd = a ...

java lambda java-8 currying  
asked by gstackoverflow 44 votes
answered by Adam 46 votes

Casting to object in .NET reference source

I was going through the OperatingSystem.cs file in the .NET reference source and noted this code in line 50: if ((Object) version == null) version is an object of class Version, which means version ...

c# .net object  
asked by afaolek 34 votes
answered by Jon Skeet 55 votes

Should I inline all CSS files programmatically to optimize page load speed?

Google PageSpeed often suggests to optimize CSS delivery. It occurred to me that it would reduce network round trips to inline all the CSS like this: <style type="text/css"> @{ ...

c# html css asp.net-mvc pagespeed  
asked by Shaun Luttin 26 votes
answered by DavidG 44 votes

What is a "private .NET framework"?

A popular financial software vendor distributes a "private" .NET framework: What exactly is a private .NET framework? Why might someone want to have their own, private version of the .NET ...

c# .net bloomberg  
asked by Tom Dworzanski 23 votes
answered by Theodoros Chatzigiannakis 16 votes

Recursive method for x^n optimised for when n is even

I need to write a recursive method using Java called power that takes a double x and an integer n and that returns x^n. Here is what I have so far. public static double power(double x, int n) { ...

java recursion exponentiation  
asked by Omar N 22 votes
answered by Stefan Haustein 10 votes

Greatest hits from previous weeks:

What does the yield keyword do in Python?

What is the use of the yield keyword in Python? What does it do? For example, I'm trying to understand this code1: def node._get_child_candidates(self, distance, min_dist, max_dist): if ...

python iterator generator yield  
asked by Alex. S. 3897 votes
answered by e-satis 6199 votes

CSS rule to disable text selection highlighting

For anchors that act like buttons (for example, Questions, Tags, Users, etc. at the top of the Stack Overflow page) or tabs, is there a CSS standard way to disable the highlighting effect if the ...

css cross-browser highlighting textselection  
asked by anon 2474 votes
answered by Blowsie 3988 votes

Can you answer these?

R lists -- how are element names handled?

I have noticed this unexpected feature: foo <- list(whatever=1:10) Now, the following works as well: foo$wha foo$w foo$whateve However, the following does not: foo[["wha"]] This has the ...

r list syntax  
asked by January 9 votes

Can you "plug in" to unhandled Promise rejections in Chrome?

A while back, v8 gained the capability to detect Promises that are rejected but have no handlers attached (commit). This landed in Chrome as a nice console error, especially useful for when you've ...

javascript google-chrome promise  
asked by BinaryMuse 5 votes

How do I give streams better exception messages?

The problem As of right now, the exception support for streams are terrible. When the Boost.System library was adopted into C++11, one was given the impression that maybe exceptions would improve. ...

c++ c++11 c++-standard-library  
asked by user5378483 19 votes
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3

Comments

Popular posts from this blog

Drupal Answers Weekly Newsletter - Wednesday, December 31, 2014

Top new questions this week: Can I delete old hook_update_N functions? Suppose you have a custom module, and you have hook_update_N() implementations in your .install file. If you have old update functions, and all updates have run in all sites that the module is ... node-update hook-update-n   asked by AyeshK ...

[New post] 8th Class Result 2014 PEC Hafizabad Board

Muhammad Waqas posted: "PEC Hafizabad Board 8th Class Result 2014 expected date is 28th March, 2014 by PEC. Punjab Examination Commission (PEC) will announce 8th class result for Hafizabad Board soon and all the students of Hafizabad Board who are extremely waiting for the resul" New post on Jobs in Pakistan 8th Class Result 2014 PEC Hafizabad Board by Muhammad Waqas ...

[New post] 1st Year (11th Class) Result 2014 BISE Rawalpindi Board

Xaib Aslam posted: "BISERWP board Inter part 1 result expected on 10th October 2014 according our source. students of Rawalpindi board desperately waiting for 11th class result. 1st they upload the 12th class result and after some time they ready for showing the 1st year fin" New post on Jobs in Pakistan 1st Year (11th Class) Result 2014 BISE Rawalpindi Board by Xaib Aslam ...